Skip to content
Henryk Wollik edited this page Jul 28, 2014 · 1 revision

Class: Keyboard

Keyboard

new Keyboard()

Representation of keyboard input.

Source:

Methods

<static> getInstance() → {Keyboard}

Returns the singleton.

Source:
Returns:
Type
Keyboard

getKeyCode() → {null|String}

Return the current key code.

Source:
Returns:
Type
null | String

getKeyCodePrev() → {null|String}

Return the previous key code.

Source:
Returns:
Type
null | String

getKeyStr() → {null|String}

Return the current key string.

Source:
Returns:
Type
null | String

getKeyStrPrev() → {null|String}

Return the previous key string.

Source:
Returns:
Type
null | String

isKeyAlt() → {Boolean}

Returns true if the alt-key is pressed.

Source:
Returns:
Type
Boolean

isKeyCtrl() → {Boolean}

Returns true if the ctrl-key is pressed.

Source:
Returns:
Type
Boolean

isKeyDown() → {Boolean}

Returns true if a key is down.

Source:
Returns:
Type
Boolean

isKeyShift() → {Boolean}

Returns true if the shift-key is pressed.

Source:
Returns:
Type
Boolean

isKeyUp() → {Boolean}

Returns true if a key is up.

Source:
Returns:
Type
Boolean

Generated with wicked.