mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-25 13:30:42 +00:00
Add high resolution scrolling with SDL 2.0.18+
This commit is contained in:
1 parent
fbf6a2e2f7
commit
fe5dd11893
2 files changed
+5
-1
No files matched your search
@@ -156,7 +156,11 @@ int sdlinput_handle_event(SDL_Event* event) {
|
|||||||
LiSendMouseMoveEvent(event->motion.xrel, event->motion.yrel);
|
LiSendMouseMoveEvent(event->motion.xrel, event->motion.yrel);
|
||||||
break;
|
break;
|
||||||
case SDL_MOUSEWHEEL:
|
case SDL_MOUSEWHEEL:
|
||||||
|
#if SDL_VERSION_ATLEAST(2, 0, 18)
|
||||||
|
LiSendHighResScrollEvent((short)(event->wheel.preciseY * 120)); // WHEEL_DELTA
|
||||||
|
#else
|
||||||
LiSendScrollEvent(event->wheel.y);
|
LiSendScrollEvent(event->wheel.y);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case SDL_MOUSEBUTTONUP:
|
case SDL_MOUSEBUTTONUP:
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
|
|||||||
Vendored
+1
-1
Submodule third_party/moonlight-common-c updated: 8abc371fb4...6001ece0b8.
Reference in new issue
Block a user