WinRT: made mouse wheel motion increments more closely match their values on Win32
authorDavid Ludwig <dludwig@pobox.com>
Sat, 23 Feb 2013 20:22:19 -0500
changeset 8441 89aee82477bb
parent 8440 29e693ff8706
child 8442 7046465c646c
WinRT: made mouse wheel motion increments more closely match their values on Win32
src/video/windowsrt/SDL_WinRTApp.cpp
--- a/src/video/windowsrt/SDL_WinRTApp.cpp	Sat Feb 23 20:12:14 2013 -0500
+++ b/src/video/windowsrt/SDL_WinRTApp.cpp	Sat Feb 23 20:22:19 2013 -0500
@@ -431,7 +431,9 @@
 #endif
 
     if (m_sdlWindowData) {
-        SDL_SendMouseWheel(m_sdlWindowData->sdlWindow, 0, args->CurrentPoint->Properties->MouseWheelDelta);
+        // FIXME: This may need to accumulate deltas up to WHEEL_DELTA
+        short motion = args->CurrentPoint->Properties->MouseWheelDelta / WHEEL_DELTA;
+        SDL_SendMouseWheel(m_sdlWindowData->sdlWindow, 0, motion);
     }
 }