Skip to content

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

Parameters

None.

Return value

Condition Return Value
(always) number

Notes

Example

btn = raylib.GetGamepadButtonPressed
if btn != raylib.GAMEPAD_BUTTON_UNKNOWN then
    print "Button pressed: " + btn
end if

Clone this wiki locally