Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed mouse wheel delta on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 12, 2013
1 parent d7d163f commit 370c5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/windows/SDL_windowsevents.c
Expand Up @@ -291,7 +291,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)

case WM_MOUSEWHEEL:
{
int motion = (short) HIWORD(wParam);
// FIXME: This may need to accumulate deltas up to WHEEL_DELTA
short motion = GET_WHEEL_DELTA_WPARAM(wParam) / WHEEL_DELTA;

SDL_SendMouseWheel(data->window, 0, motion);
break;
Expand Down

0 comments on commit 370c5aa

Please sign in to comment.