diff options
| author | Ray <[email protected]> | 2023-05-21 11:20:42 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-05-21 11:20:42 +0200 |
| commit | 1b4634702ca9f1e76477833618ccfea9093f03e5 (patch) | |
| tree | bc2839c18091105915551f2c0744f2079736895d /src | |
| parent | 3a841ac130f90c607c29aa79288b943bbfe569b1 (diff) | |
| download | raylib-1b4634702ca9f1e76477833618ccfea9093f03e5.tar.gz raylib-1b4634702ca9f1e76477833618ccfea9093f03e5.zip | |
Minor tweak
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c index 127abcf3..7a31b5ed 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -5101,7 +5101,6 @@ void PollInputEvents(void) // Get current gamepad state // NOTE: There is no callback available, so we get it manually - // Get remapped buttons GLFWgamepadstate state = { 0 }; glfwGetGamepadState(i, &state); // This remapps all gamepads so they have their buttons mapped like an xbox controller @@ -5109,7 +5108,7 @@ void PollInputEvents(void) for (int k = 0; (buttons != NULL) && (k < GLFW_GAMEPAD_BUTTON_DPAD_LEFT + 1) && (k < MAX_GAMEPAD_BUTTONS); k++) { - GamepadButton button = -1; + int button = -1; // GamepadButton enum values assigned switch (k) { |
