mirror of
https://github.com/yawut/SDL.git
synced 2026-07-24 20:21:04 -05:00
WinRT: made mouse wheel motion increments more closely match their values on Win32
This commit is contained in:
parent
7b0ad782e6
commit
7cc98a4238
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user