JoyButtonHit

Category: Input

Back to System Functions


Signature

JoyButtonHit(joy As Integer, button As Integer)

Returns

Boolean

Description

Returns True on the frame when the specified controller button is pressed.

Use JoyButtonDown when you want the held-down state instead of a single-frame press event.

Example

If JoyButtonHit(0, JOY_BUTTON_START) Then
    End
End If