Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
WinRT: made mouse wheel motion increments more closely match their va…
Browse files Browse the repository at this point in the history
…lues on Win32
  • Loading branch information
DavidLudwig committed Feb 24, 2013
1 parent 9a9fdf0 commit 27ee7eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/windowsrt/SDL_WinRTApp.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 27ee7eb

Please sign in to comment.