JoyButtonDown

Category: Input

Back to System Functions


Signature

JoyButtonDown(joy As Integer, button As Integer)

Returns

Boolean

Description

Returns True while the specified controller button is currently pressed.

The button argument should be one of the values listed on Controller Constants.

Example

If JoyButtonDown(0, JOY_BUTTON_A) Then
    End
End If