mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-02 22:16:24 +00:00
Add high resolution scrolling with SDL 2.0.18+
This commit is contained in:
@@ -156,7 +156,11 @@ int sdlinput_handle_event(SDL_Event* event) {
|
||||
LiSendMouseMoveEvent(event->motion.xrel, event->motion.yrel);
|
||||
break;
|
||||
case SDL_MOUSEWHEEL:
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 18)
|
||||
LiSendHighResScrollEvent((short)(event->wheel.preciseY * 120)); // WHEEL_DELTA
|
||||
#else
|
||||
LiSendScrollEvent(event->wheel.y);
|
||||
#endif
|
||||
break;
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
|
||||
2
third_party/moonlight-common-c
vendored
2
third_party/moonlight-common-c
vendored
Submodule third_party/moonlight-common-c updated: 8abc371fb4...6001ece0b8
Reference in New Issue
Block a user