Category: Constants
Controller constants are used with JoyButtonDown, JoyButtonHit, and JoyAxis#.
| Constant | Description |
|---|---|
| JOY_BUTTON_A | The primary face button. |
| JOY_BUTTON_B | The right face button. |
| JOY_BUTTON_X | The left face button. |
| JOY_BUTTON_Y | The top face button. |
| JOY_BUTTON_BACK | The back or select button. |
| JOY_BUTTON_GUIDE | The guide or system button when supported. |
| JOY_BUTTON_START | The start or menu button. |
| JOY_BUTTON_LEFT_STICK | The left stick button. |
| JOY_BUTTON_RIGHT_STICK | The right stick button. |
| JOY_BUTTON_LEFT_SHOULDER | The left shoulder button. |
| JOY_BUTTON_RIGHT_SHOULDER | The right shoulder button. |
| JOY_BUTTON_DPAD_UP | The D-pad up button. |
| JOY_BUTTON_DPAD_DOWN | The D-pad down button. |
| JOY_BUTTON_DPAD_LEFT | The D-pad left button. |
| JOY_BUTTON_DPAD_RIGHT | The D-pad right button. |
| Constant | Description |
|---|---|
| JOY_AXIS_LEFT_X | The left stick horizontal axis. |
| JOY_AXIS_LEFT_Y | The left stick vertical axis. |
| JOY_AXIS_RIGHT_X | The right stick horizontal axis. |
| JOY_AXIS_RIGHT_Y | The right stick vertical axis. |
| JOY_AXIS_LEFT_TRIGGER | The left trigger axis. |
| JOY_AXIS_RIGHT_TRIGGER | The right trigger axis. |
If JoyButtonDown(0, JOY_BUTTON_A) Then
End
End If
If JoyAxis#(0, JOY_AXIS_LEFT_TRIGGER) > 0.5 Then
End
End If