diff options
| author | Ray <[email protected]> | 2024-07-01 13:05:20 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-07-01 13:05:20 +0200 |
| commit | 61cfd1afcb465b5913362981fe66b7db84e58915 (patch) | |
| tree | d50f4863e9dc3edb2e5bf23044c6940d0bf54e99 /src/platforms | |
| parent | c8313d9ebc428590c7098a75d2db0eed1d877127 (diff) | |
| download | raylib-61cfd1afcb465b5913362981fe66b7db84e58915.tar.gz raylib-61cfd1afcb465b5913362981fe66b7db84e58915.zip | |
Minor tweaks
Diffstat (limited to 'src/platforms')
| -rw-r--r-- | src/platforms/rcore_desktop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c index bb3fcf4f..dbdde9db 100644 --- a/src/platforms/rcore_desktop.c +++ b/src/platforms/rcore_desktop.c @@ -1147,7 +1147,7 @@ void PollInputEvents(void) const unsigned char *buttons = state.buttons; - for (int k = 0; (buttons != NULL) && (k < GLFW_GAMEPAD_BUTTON_DPAD_LEFT + 1) && (k < MAX_GAMEPAD_BUTTONS); k++) + for (int k = 0; (buttons != NULL) && (k < MAX_GAMEPAD_BUTTONS); k++) { int button = -1; // GamepadButton enum values assigned @@ -1189,7 +1189,7 @@ void PollInputEvents(void) // Get current axis state const float *axes = state.axes; - for (int k = 0; (axes != NULL) && (k < GLFW_GAMEPAD_AXIS_LAST + 1) && (k < MAX_GAMEPAD_AXIS); k++) + for (int k = 0; (axes != NULL) && (k < GLFW_GAMEPAD_AXIS_LAST + 1); k++) { CORE.Input.Gamepad.axisState[i][k] = axes[k]; } |
