From 49ddfa573dca93ba1d82bb4c21a08d048bb4f4a6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 19 Jan 2016 18:31:00 -0500 Subject: [PATCH] Ignore inputs when the on-screen controls are in configuration mode --- app/src/main/java/com/limelight/Game.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 3824aa3f..ff3a4fde 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -666,6 +666,12 @@ public class Game extends Activity implements SurfaceHolder.Callback, // This case is for touch-based input devices else { + if (virtualController != null && + virtualController.getControllerMode() == VirtualController.ControllerMode.Configuration) { + // Ignore presses when the virtual controller is in configuration mode + return true; + } + int actionIndex = event.getActionIndex(); int eventX = (int)event.getX(actionIndex);