Fixed mouse wheel delta on Windows
This commit is contained in:
parent
5f3f837a42
commit
eb63dcd330
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue