-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetGamepadButtonPressed
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get the last gamepad button pressed NOTE: Returns last gamepad button down, down->up change not considered
None.
| Condition | Return Value |
|---|---|
| (always) | number |
btn = raylib.GetGamepadButtonPressed
if btn != raylib.GAMEPAD_BUTTON_UNKNOWN then
print "Button pressed: " + btn
end if