summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorReece Mackie <[email protected]>2019-04-28 16:53:20 +0100
committerReece Mackie <[email protected]>2019-04-28 16:53:20 +0100
commita51f3be38fe8dea4b3220e4071ebd826a2090c1c (patch)
tree43d9489e5c3d2eb248920819090fca454014f0ee /src/core.c
parentf36ba6a2f405ffc6a85cc4d7aeda286e73e5b517 (diff)
downloadraylib-a51f3be38fe8dea4b3220e4071ebd826a2090c1c.tar.gz
raylib-a51f3be38fe8dea4b3220e4071ebd826a2090c1c.zip
Fix web
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 1dc27050..8bff8245 100644
--- a/src/core.c
+++ b/src/core.c
@@ -3485,7 +3485,7 @@ static void PollInputEvents(void)
// Register axis data for every connected gamepad
for (int j = 0; (j < gamepadState.numAxes) && (j < MAX_GAMEPAD_AXIS); j++)
{
- const GamepadAxis axis = GetGamepadAxis(k);
+ const GamepadAxis axis = GetGamepadAxis(j);
gamepadAxisState[i][axis] = gamepadState.axis[j];
}