summaryrefslogtreecommitdiffhomepage
path: root/src/rcore_web.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore_web.c')
-rw-r--r--src/rcore_web.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore_web.c b/src/rcore_web.c
index 9e4ce5b9..f8e1e5b2 100644
--- a/src/rcore_web.c
+++ b/src/rcore_web.c
@@ -705,7 +705,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
@@ -799,7 +799,7 @@ void PollInputEvents(void)
CORE.Input.Gamepad.axisState[i][j] = gamepadState.axis[j];
}
- CORE.Input.Gamepad.axisCount = gamepadState.numAxes;
+ CORE.Input.Gamepad.axisCount[i] = gamepadState.numAxes;
}
}
}