diff --git a/src/input/sdl.c b/src/input/sdl.c index 72f373c..5fe6420 100644 --- a/src/input/sdl.c +++ b/src/input/sdl.c @@ -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: diff --git a/third_party/moonlight-common-c b/third_party/moonlight-common-c index 8abc371..6001ece 160000 --- a/third_party/moonlight-common-c +++ b/third_party/moonlight-common-c @@ -1 +1 @@ -Subproject commit 8abc371fb4c970b7cfae0860789e98fbb90ed231 +Subproject commit 6001ece0b8bfcea6a8122a3e56f48f515e1aaaf5