IS BUTTON JUST PRESSED

From GTAMods Wiki
Revision as of 04:03, 16 July 2013 by Pedro2555 (talk | contribs) (Created page with "{{Native |np=2 |p1t=Integer |p1d=Controller ID (0) |p2t=Integer |p2d=Button ID |r=1 |rt=Boolean |rd=Whether the specified button is pressed or not. }} Gets if a specified but...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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