summaryrefslogtreecommitdiffhomepage
path: root/examples/core
diff options
context:
space:
mode:
authorAntonis Geralis <[email protected]>2023-02-01 16:13:25 +0200
committerGitHub <[email protected]>2023-02-01 15:13:25 +0100
commit212f331583c8847162d5950183bed9c551fbf552 (patch)
tree1b13671206a0f6349d61eb614a91e41f9cc22bcb /examples/core
parentd827a65e59c8474b4899ff7034dcc4d17b2fb4c0 (diff)
downloadraylib-212f331583c8847162d5950183bed9c551fbf552.tar.gz
raylib-212f331583c8847162d5950183bed9c551fbf552.zip
Update core_input_gamepad.c (#2903)
Diffstat (limited to 'examples/core')
-rw-r--r--examples/core/core_input_gamepad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/core/core_input_gamepad.c b/examples/core/core_input_gamepad.c
index 411472b3..cd0c867d 100644
--- a/examples/core/core_input_gamepad.c
+++ b/examples/core/core_input_gamepad.c
@@ -174,7 +174,7 @@ int main(void)
DrawText(TextFormat("AXIS %i: %.02f", i, GetGamepadAxisMovement(0, i)), 20, 70 + 20*i, 10, DARKGRAY);
}
- if (GetGamepadButtonPressed() != -1) DrawText(TextFormat("DETECTED BUTTON: %i", GetGamepadButtonPressed()), 10, 430, 10, RED);
+ if (GetGamepadButtonPressed() != GAMEPAD_BUTTON_UNKNOWN) DrawText(TextFormat("DETECTED BUTTON: %i", GetGamepadButtonPressed()), 10, 430, 10, RED);
else DrawText("DETECTED BUTTON: NONE", 10, 430, 10, GRAY);
}
else