natives.IS BUTTON PRESSED: Difference between revisions

Jump to navigation Jump to search
Add ScriptItem documentation from GTA VC SCM decompile
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
Line 5: Line 5:
|name = natives.IS_BUTTON_PRESSED
|name = natives.IS_BUTTON_PRESSED
|parameters = int padIndex, int button
|parameters = int padIndex, int button
|parameter1 = int padIndex Controller pad index (0 = player 1).
|parameter1 = int padIndex Controller index (0 = player 1).
|parameter2 = int button Button identifier.
|parameter2 = int button Button identifier code.
|usage = Check if a button is pressed.
|usage = checks if a specific button on a controller is currently pressed
|return1 = void
|return1 = void
|returnFail1 = void
|returnFail1 = void
}}
}}
1,545

edits

Navigation menu