natives.IS BUTTON PRESSED: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|side = client
|games = vc
|games = vc
|type = function
|type = function
|name = natives.IS_BUTTON_PRESSED
|name = natives.IS_BUTTON_PRESSED
|parameters = int padIndex, int button
|arg1 = int entity Entity handle.
|parameter1 = int padIndex Controller pad index (0 = player 1).
|arg2 = int flag Flag value (0 or 1).
|parameter2 = int button Button identifier.
|desc = checks if a specific button on a controller is currently pressed
|usage = Check if a button is pressed.
|return1 = void
|return1 = void
|returnFail1 = void
}}
}}

Latest revision as of 19:03, 13 June 2026

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.IS_BUTTON_PRESSED(int entity, int flag)
The natives.IS_BUTTON_PRESSED function is used to checks if a specific button on a controller is currently pressed.

Parameters

1) int entity Entity handle.
2) int flag Flag value (0 or 1).

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.