diff options
Diffstat (limited to 'examples/core_input_gamepad.lua')
| -rw-r--r-- | examples/core_input_gamepad.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/core_input_gamepad.lua b/examples/core_input_gamepad.lua index eea2532c..78d9b84e 100644 --- a/examples/core_input_gamepad.lua +++ b/examples/core_input_gamepad.lua @@ -36,7 +36,7 @@ while not WindowShouldClose() do -- Detect window close button or ESC key ballPosition.x = ballPosition.x + gamepadMovement.x ballPosition.y = ballPosition.y - gamepadMovement.y - if (IsGamepadButtonPressed(GAMEPAD_PLAYER1, GAMEPAD_BUTTON_A)) then + if (IsGamepadButtonPressed(GAMEPAD.PLAYER1, GAMEPAD.BUTTON_A)) then ballPosition.x = screenWidth/2 ballPosition.y = screenHeight/2 end |
