SDL.GetKeyFromName

From GTA Connected
Revision as of 00:30, 8 November 2018 by Mex (talk | contribs) (Created page with "{{ScriptItem |endpoint = shared |type = function |name = SDL.GetKeyFromName |parameters = string key |returnTypes = int |usage = fetch a key code from a human-readable name |r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Available since Server 1.0.0, Client 1.0.0

int SDL.GetKeyFromName(string key)

The SDL.GetKeyFromName function is used to fetch a key code from a human-readable name.

Parameters

Documentation Missing: Parameters

Return

int An integer representing a key code from a human-readable name.

Notes

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server 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 unbindAllKeys
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindKey


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