From 6777e79e706d906fe18bfcdd2d996414436a9a69 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 29 Nov 2022 23:25:39 -0600 Subject: [PATCH] Fix inverted mouse capture bug --- app/src/main/java/com/limelight/Game.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 443ce90c..0430a67c 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -1129,10 +1129,10 @@ public class Game extends Activity implements SurfaceHolder.Callback, private void setInputGrabState(boolean grab) { // Grab/ungrab the mouse cursor if (grab) { - inputCaptureProvider.disableCapture(); + inputCaptureProvider.enableCapture(); } else { - inputCaptureProvider.enableCapture(); + inputCaptureProvider.disableCapture(); } // Grab/ungrab system keyboard shortcuts