From da45cba2ff985aed6660531d1e7c1127fd126787 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 8 Dec 2021 22:11:44 -0600 Subject: [PATCH] Send fractional scroll events properly --- app/src/main/java/com/limelight/Game.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 45c4d91c..c4d626e0 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -1308,8 +1308,7 @@ public class Game extends Activity implements SurfaceHolder.Callback, if (event.getActionMasked() == MotionEvent.ACTION_SCROLL) { // Send the vertical scroll packet - byte vScrollClicks = (byte) event.getAxisValue(MotionEvent.AXIS_VSCROLL); - conn.sendMouseScroll(vScrollClicks); + conn.sendMouseHighResScroll((short)(event.getAxisValue(MotionEvent.AXIS_VSCROLL) * 120)); } if ((changedButtons & MotionEvent.BUTTON_PRIMARY) != 0) {