WinRT: made mouse wheel motion increments more closely match their values on Win32

This commit is contained in:
David Ludwig 2013-02-23 20:22:19 -05:00
parent 7b0ad782e6
commit 7cc98a4238

View File

@ -431,7 +431,9 @@ void SDL_WinRTApp::OnPointerWheelChanged(CoreWindow^ sender, PointerEventArgs^ a
#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);
}
}