IS BUTTON PRESSED
Jump to navigation
Jump to search
Number of parameters: 2 | ||
---|---|---|
Parameter # | Type | Description |
1. | Integer | Controller ID (0) |
2. | Integer | Button ID |
Return value: | ||
Type | Description | |
Boolean | Whether the specified button is pressed or not. |
Gets if a specified button is pressed or not.
Button | ID |
---|---|
BUTTON_BACK | 13 |
BUTTON_START | 12 |
BUTTON_X | 14 |
BUTTON_Y | 15 |
BUTTON_A | 16 |
BUTTON_B | 17 |
BUTTON_DPAD_UP | 8 |
BUTTON_DPAD_DOWN | 9 |
BUTTON_DPAD_LEFT | 10 |
BUTTON_DPAD_RIGHT | 11 |
BUTTON_TRIGGER_LEFT | 5 |
BUTTON_TRIGGER_RIGHT | 7 |
BUTTON_BUMPER_LEFT | 4 |
BUTTON_BUMPER_RIGHT | 6 |
BUTTON_STICK_LEFT | 18 |
BUTTON_STICK_RIGHT | 19 |