Fix inverted mouse capture bug

This commit is contained in:
Cameron Gutman
2022-11-29 23:25:39 -06:00
parent 16d1e6181b
commit 6777e79e70

View File

@@ -1129,10 +1129,10 @@ public class Game extends Activity implements SurfaceHolder.Callback,
private void setInputGrabState(boolean grab) { private void setInputGrabState(boolean grab) {
// Grab/ungrab the mouse cursor // Grab/ungrab the mouse cursor
if (grab) { if (grab) {
inputCaptureProvider.disableCapture(); inputCaptureProvider.enableCapture();
} }
else { else {
inputCaptureProvider.enableCapture(); inputCaptureProvider.disableCapture();
} }
// Grab/ungrab system keyboard shortcuts // Grab/ungrab system keyboard shortcuts