retro-engine / Exports / KeyStates
The KeyStates class is used to keep track of the state of the keyboard.
The map of key states.
▪ Static Private states: Map<string, boolean>
Checks if a key is currently pressed.
▸ Static isPressed(key): boolean
| Name | Type |
|---|---|
key |
string |
boolean