EditGamePad:ButtonHit
This method detects whether a gamepad button is currently pressed.
Syntax
- boolean ButtonHit(number button)
Parameter |
Description |
button |
gamepad button ID from the list below |
Returns
Returns true if the button has pressed since the last call to this method, otherwise false is returned.
Remarks
The following button constants can be used:
- GAMEPADBUTTON_DPADUP
- GAMEPADBUTTON_DPADDOWN
- GAMEPADBUTTON_DPADLEFT
- GAMEPADBUTTON_DPADRIGHT
- GAMEPADBUTTON_START
- GAMEPADBUTTON_BACK
- GAMEPADBUTTON_LTHUMB
- GAMEPADBUTTON_RTHUMB
- GAMEPADBUTTON_LSHOULDER
- GAMEPADBUTTON_RSHOULDER
- GAMEPADBUTTON_X
- GAMEPADBUTTON_Y
- GAMEPADBUTTON_A
- GAMEPADBUTTON_B