Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

WinRT: made mouse wheel motion increments more closely match their va…

…lues on Win32
  • Loading branch information
DavidLudwig committed Feb 24, 2013
1 parent 9a9fdf0 commit 27ee7eb698289b719c8e1e5ef1f6e273609f5bac
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/video/windowsrt/SDL_WinRTApp.cpp
@@ -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);
}
}

0 comments on commit 27ee7eb

Please sign in to comment.