src/video/windows/SDL_windowsevents.c
changeset 6861 c1c9eab3bd20
parent 6837 a69e10925a58
child 6862 d189a1e771fe
equal deleted inserted replaced
6860:c16fc4e46ae5 6861:c1c9eab3bd20
   289         returnCode = TRUE;
   289         returnCode = TRUE;
   290         break;
   290         break;
   291 
   291 
   292     case WM_MOUSEWHEEL:
   292     case WM_MOUSEWHEEL:
   293         {
   293         {
   294             int motion = (short) HIWORD(wParam);
   294             // FIXME: This may need to accumulate deltas up to WHEEL_DELTA
       
   295             short motion = GET_WHEEL_DELTA_WPARAM(wParam) / WHEEL_DELTA;
   295 
   296 
   296             SDL_SendMouseWheel(data->window, 0, motion);
   297             SDL_SendMouseWheel(data->window, 0, motion);
   297             break;
   298             break;
   298         }
   299         }
   299 
   300