IS BUTTON JUST PRESSED

From GTAMods Wiki
Jump to navigation Jump to search
IS_BUTTON_JUST_PRESSED
Number of parameters: 2
Parameter #TypeDescription
1.IntegerController ID (0)
2.IntegerButton ID
Return value:
TypeDescription
BooleanWhether the specified button is pressed or not.

Gets if a specified button is pressed or not. Not really sure what the difference is from IS_BUTTON_PRESSED.

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