From d50c98fc39a6953d28d5313927c893ad264a2ca7 Mon Sep 17 00:00:00 2001 From: artdeell Date: Sun, 29 Dec 2024 18:25:13 +0300 Subject: [PATCH] Fix[gamepad_direct]: remove unnecessary gamepad keycodes --- .../customcontrols/gamepad/direct/GamepadKeycodes.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/direct/GamepadKeycodes.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/direct/GamepadKeycodes.java index 2ed1a5a163..d20663bc7c 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/direct/GamepadKeycodes.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/direct/GamepadKeycodes.java @@ -12,6 +12,8 @@ public class GamepadKeycodes { public static final short GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER = 5; public static final short GLFW_GAMEPAD_BUTTON_BACK = 6; public static final short GLFW_GAMEPAD_BUTTON_START = 7; + // Home button, unused because Android takes the home button events + // for itself public static final short GLFW_GAMEPAD_BUTTON_GUIDE = 8; public static final short GLFW_GAMEPAD_BUTTON_LEFT_THUMB = 9; public static final short GLFW_GAMEPAD_BUTTON_RIGHT_THUMB = 10; @@ -19,11 +21,6 @@ public class GamepadKeycodes { public static final short GLFW_GAMEPAD_BUTTON_DPAD_RIGHT = 12; public static final short GLFW_GAMEPAD_BUTTON_DPAD_DOWN = 13; public static final short GLFW_GAMEPAD_BUTTON_DPAD_LEFT = 14; - public static final short GLFW_GAMEPAD_BUTTON_LAST = GLFW_GAMEPAD_BUTTON_DPAD_LEFT; - public static final short GLFW_GAMEPAD_BUTTON_CROSS = GLFW_GAMEPAD_BUTTON_A; - public static final short GLFW_GAMEPAD_BUTTON_CIRCLE = GLFW_GAMEPAD_BUTTON_B; - public static final short GLFW_GAMEPAD_BUTTON_SQUARE = GLFW_GAMEPAD_BUTTON_X; - public static final short GLFW_GAMEPAD_BUTTON_TRIANGLE = GLFW_GAMEPAD_BUTTON_Y; public static final short GLFW_GAMEPAD_AXIS_LEFT_X = 0; public static final short GLFW_GAMEPAD_AXIS_LEFT_Y = 1; @@ -31,5 +28,4 @@ public class GamepadKeycodes { public static final short GLFW_GAMEPAD_AXIS_RIGHT_Y = 3; public static final short GLFW_GAMEPAD_AXIS_LEFT_TRIGGER = 4; public static final short GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER = 5; - public static final short GLFW_GAMEPAD_AXIS_LAST = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER; }