Namespace: keyboard

syngen.input.keyboard

Methods

(static) get() → {Object}

Returns a hash of all pressed keys, keyed by code. For example, if F is pressed, then KeyF is true.

Source:
Returns:
Type
Object

(static) is(code) → {Boolean}

Returns whether the key with code is pressed.

Parameters:
Name Type Description
code String
Source:
Returns:
Type
Boolean

(static) reset()

Resets all pressed keys.

Source: