| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | } |
| | | WINRT_LeftFingerDown = 0; |
| | | } |
| | | |
| | | |
| | | SDL_SendTouch( |
| | | WINRT_TouchID, |
| | | (SDL_FingerID) pointerPoint->PointerId, |
| | |
| | | return; |
| | | } |
| | | |
| | | // FIXME: This may need to accumulate deltas up to WHEEL_DELTA |
| | | short motion = pointerPoint->Properties->MouseWheelDelta / WHEEL_DELTA; |
| | | SDL_SendMouseWheel(window, 0, 0, motion, SDL_MOUSEWHEEL_NORMAL); |
| | | float motion = (float) pointerPoint->Properties->MouseWheelDelta / WHEEL_DELTA; |
| | | SDL_SendMouseWheel(window, 0, 0, (float) motion, SDL_MOUSEWHEEL_NORMAL); |
| | | } |
| | | |
| | | void |
| | |
| | | // http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.input.mouseeventargs.mousedelta ), |
| | | // does not seem to indicate (to me) that its values should be so large. It |
| | | // says that its values should be a "change in screen location". I could |
| | | // be misinterpreting this, however a post on MSDN from a Microsoft engineer (see: |
| | | // be misinterpreting this, however a post on MSDN from a Microsoft engineer (see: |
| | | // http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/09a9868e-95bb-4858-ba1a-cb4d2c298d62 ), |
| | | // indicates that these values are in DIPs, which is the same unit used |
| | | // by CoreWindow's PointerMoved events (via the Position field in its CurrentPoint |