aboutsummaryrefslogtreecommitdiff
path: root/examples/core_input_gamepad.lua
diff options
context:
space:
mode:
authorghassanpl <kronikarz@gmail.com>2016-08-06 16:58:48 +0200
committerghassanpl <kronikarz@gmail.com>2016-08-06 16:58:48 +0200
commit4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (patch)
tree88dfb074579589a5ea6eba92462bb44863d18798 /examples/core_input_gamepad.lua
parentd5f5f0a9302435945b730e5ec001bda39741f3c7 (diff)
downloadraylib-4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5.tar.gz
raylib-4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5.zip
Fixes for some Lua bugs
Diffstat (limited to 'examples/core_input_gamepad.lua')
-rw-r--r--examples/core_input_gamepad.lua2
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