sdl.getKeyFromScancode

From GTA Connected
(Redirected from Sdl.getKeyFromScancode)
Jump to: navigation, search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

int sdl.getKeyFromScancode(int scanCode)

Description

The sdl.getKeyFromScancode function is used to fetch the key code corresponding to the given scancode according to the current keyboard layout.

Parameters

Type Name Presence Default Value Description
int scanCode required n/a The key scan code to fetch the key code for.

Returns

Success Returns

Type Description
int An integer representing the key code corresponding to the given scancode according to the current keyboard layout.

Failure Returns

Type Value
null n/a

Notes

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

bindKey
unbindAllKeys
unbindKey


Client Related

bindKey
isKeyDown
isScancodePressed
unbindAllKeys
unbindKey