natives.IS BUTTON PRESSED
Jump to navigation
Jump to search
natives.IS_BUTTON_PRESSED
Signature: void natives.IS_BUTTON_PRESSED(int padIndex, int button)
Usage: checks if a specific button on a controller is currently pressed
Parameters
- int padIndex Controller index (0 = player 1).
- int button Button identifier code.
Return
void
On failure: void