sdl.getKeyboardState

Revision as of 15:26, 24 August 2019 by Mex (talk | contribs) (Mex moved page Sdl.getKeyboardState to sdl.getKeyboardState)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

array sdl.getKeyboardState(void)

The sdl.getKeyboardState function is used to fetch a snapshot of the current state of the keyboard.

Parameters

void This function doesn't take any parameters.

Return

array An array of boolean values. A value of true means that the key is pressed and a value of false means that it is not.

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