diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadButton.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadButton.java index 4d2d9aaba5..b80324527c 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadButton.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/GamepadButton.java @@ -10,7 +10,8 @@ public class GamepadButton extends GamepadEmulatedButton { @Override protected void onDownStateChanged(boolean isDown) { - if(isToggleable && isDown){ + if(isToggleable) { + if(!isDown) return; mIsToggled = !mIsToggled; Gamepad.sendInput(keycodes, mIsToggled); return;