diff options
| author | raysan5 <[email protected]> | 2021-10-22 15:04:31 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-22 15:04:31 +0200 |
| commit | 18833439440ed96ae40f1a32622390397ffc31d2 (patch) | |
| tree | 2e29ed5b84aeb88039c2fd7b9fc4394eaa70a2f6 /examples/core | |
| parent | ebad28d831436dce424f98d544953790a9b13803 (diff) | |
| download | raylib-18833439440ed96ae40f1a32622390397ffc31d2.tar.gz raylib-18833439440ed96ae40f1a32622390397ffc31d2.zip | |
Update core_input_gamepad.c
Diffstat (limited to 'examples/core')
| -rw-r--r-- | examples/core/core_input_gamepad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/core/core_input_gamepad.c b/examples/core/core_input_gamepad.c index 3595329b..7da5b94e 100644 --- a/examples/core/core_input_gamepad.c +++ b/examples/core/core_input_gamepad.c @@ -62,7 +62,7 @@ int main(void) { DrawText(TextFormat("GP1: %s", GetGamepadName(0)), 10, 10, 10, BLACK); - if (IsGamepadName(0, XBOX360_NAME_ID) || IsGamepadName(0, XBOX360_LEGACY_NAME_ID)) + if (TextIsEqual(GetGamepadName(0), XBOX360_NAME_ID) || TextIsEqual(GetGamepadName(0), XBOX360_LEGACY_NAME_ID)) { DrawTexture(texXboxPad, 0, 0, DARKGRAY); @@ -110,7 +110,7 @@ int main(void) //DrawText(TextFormat("Xbox axis LT: %02.02f", GetGamepadAxisMovement(0, GAMEPAD_AXIS_LEFT_TRIGGER)), 10, 40, 10, BLACK); //DrawText(TextFormat("Xbox axis RT: %02.02f", GetGamepadAxisMovement(0, GAMEPAD_AXIS_RIGHT_TRIGGER)), 10, 60, 10, BLACK); } - else if (IsGamepadName(0, PS3_NAME_ID)) + else if (TextIsEqual(GetGamepadName(0), PS3_NAME_ID)) { DrawTexture(texPs3Pad, 0, 0, DARKGRAY); |
