mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 18:57:51 +00:00
parent
dd1032282e
commit
2e604c2bbb
1 changed files with 2 additions and 2 deletions
|
|
@ -719,11 +719,11 @@ static void WIN_HandleRawMouseInput(Uint64 timestamp, SDL_VideoData *data, HANDL
|
|||
if (rawmouse->usButtonFlags & RI_MOUSE_WHEEL) {
|
||||
SHORT amount = (SHORT)rawmouse->usButtonData;
|
||||
float fAmount = (float)amount / WHEEL_DELTA;
|
||||
SDL_SendMouseWheel(WIN_GetEventTimestamp(), window, mouseID, 0.0f, fAmount, SDL_MOUSEWHEEL_NORMAL);
|
||||
SDL_SendMouseWheel(timestamp, window, mouseID, 0.0f, fAmount, SDL_MOUSEWHEEL_NORMAL);
|
||||
} else if (rawmouse->usButtonFlags & RI_MOUSE_HWHEEL) {
|
||||
SHORT amount = (SHORT)rawmouse->usButtonData;
|
||||
float fAmount = (float)amount / WHEEL_DELTA;
|
||||
SDL_SendMouseWheel(WIN_GetEventTimestamp(), window, mouseID, fAmount, 0.0f, SDL_MOUSEWHEEL_NORMAL);
|
||||
SDL_SendMouseWheel(timestamp, window, mouseID, fAmount, 0.0f, SDL_MOUSEWHEEL_NORMAL);
|
||||
}
|
||||
|
||||
/* Invalidate the mouse button flags. If we don't do this then disabling raw input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue