isScancodePressed: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = isScancodePressed
|side = client
|type = function
|type = function
|name = isScancodePressed
|games = iii vc sa iv
|usage = fetch the status of a scancode key being pressed
|desc = fetch the status of a scancode key being pressed
|parameters = int scanCodeKey
|arg1 = bool scanCodeKey The scancode for the key.
|parameter1 = bool scanCodeKey The scancode for the key.
|return = bool a boolean, representing whether the scancode key is pressed down
|returnTypes = bool
|freturn = void
|returnInfo = a boolean, representing whether the scancode key is pressed down
|returnFail1 = void
}}
}}

Latest revision as of 20:36, 19 November 2022

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

bool isScancodePressed(bool scanCodeKey)

The isScancodePressed function is used to fetch the status of a scancode key being pressed.

Parameters

1) bool scanCodeKey The scancode for the key.

Return

bool A boolean, representing whether the scancode key is pressed down.

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.

Related

Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png bindKey
icon-iii.png icon-vc.png icon-sa.png icon-iv.png isKeyDown
icon-iii.png icon-vc.png icon-sa.png icon-iv.png isScancodePressed
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindAllKeys
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindKey