summaryrefslogtreecommitdiffhomepage
path: root/src/rcore_desktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore_desktop.c')
-rw-r--r--src/rcore_desktop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore_desktop.c b/src/rcore_desktop.c
index fe5a02aa..4039bbd8 100644
--- a/src/rcore_desktop.c
+++ b/src/rcore_desktop.c
@@ -1234,7 +1234,7 @@ void PollInputEvents(void)
// Reset last gamepad button/axis registered state
CORE.Input.Gamepad.lastButtonPressed = 0; // GAMEPAD_BUTTON_UNKNOWN
- CORE.Input.Gamepad.axisCount = 0;
+ //CORE.Input.Gamepad.axisCount = 0;
// Keyboard/Mouse input polling (automatically managed by GLFW3 through callback)
// Register previous keys states
@@ -1341,7 +1341,7 @@ void PollInputEvents(void)
CORE.Input.Gamepad.currentButtonState[i][GAMEPAD_BUTTON_LEFT_TRIGGER_2] = (char)(CORE.Input.Gamepad.axisState[i][GAMEPAD_AXIS_LEFT_TRIGGER] > 0.1f);
CORE.Input.Gamepad.currentButtonState[i][GAMEPAD_BUTTON_RIGHT_TRIGGER_2] = (char)(CORE.Input.Gamepad.axisState[i][GAMEPAD_AXIS_RIGHT_TRIGGER] > 0.1f);
- CORE.Input.Gamepad.axisCount = GLFW_GAMEPAD_AXIS_LAST + 1;
+ CORE.Input.Gamepad.axisCount[i] = GLFW_GAMEPAD_AXIS_LAST + 1;
}
}