From dcf4dac8dd1f0d264f5b22b6fff6b3c4bfb69331 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 25 Feb 2018 12:17:59 -0800 Subject: [PATCH] Only add L3/R3 buttons for the L3/R3-only config, since the analog sticks work for this --- .../VirtualControllerConfigurationLoader.java | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/com/limelight/binding/input/virtual_controller/VirtualControllerConfigurationLoader.java b/app/src/main/java/com/limelight/binding/input/virtual_controller/VirtualControllerConfigurationLoader.java index 1bd1041d..7a40ee9d 100644 --- a/app/src/main/java/com/limelight/binding/input/virtual_controller/VirtualControllerConfigurationLoader.java +++ b/app/src/main/java/com/limelight/binding/input/virtual_controller/VirtualControllerConfigurationLoader.java @@ -255,22 +255,23 @@ public class VirtualControllerConfigurationLoader { getPercent(10, screen.heightPixels) ); } + else { + controller.addElement(createDigitalButton( + ControllerPacket.LS_CLK_FLAG, 0, 1, "L3", -1, controller, context), + getPercent(2, screen.widthPixels), + getPercent(80, screen.heightPixels), + getPercent(BUTTON_WIDTH, screen.widthPixels), + getPercent(BUTTON_HEIGHT, screen.heightPixels) + ); - controller.addElement(createDigitalButton( - ControllerPacket.LS_CLK_FLAG, 0, 1, "L3", -1, controller, context), - getPercent(2, screen.widthPixels), - getPercent(80, screen.heightPixels), - getPercent(BUTTON_WIDTH, screen.widthPixels), - getPercent(BUTTON_HEIGHT, screen.heightPixels) - ); - - controller.addElement(createDigitalButton( - ControllerPacket.RS_CLK_FLAG, 0, 1, "R3", -1, controller, context), - getPercent(89, screen.widthPixels), - getPercent(80, screen.heightPixels), - getPercent(BUTTON_WIDTH, screen.widthPixels), - getPercent(BUTTON_HEIGHT, screen.heightPixels) - ); + controller.addElement(createDigitalButton( + ControllerPacket.RS_CLK_FLAG, 0, 1, "R3", -1, controller, context), + getPercent(89, screen.widthPixels), + getPercent(80, screen.heightPixels), + getPercent(BUTTON_WIDTH, screen.widthPixels), + getPercent(BUTTON_HEIGHT, screen.heightPixels) + ); + } } /*