Signature:
export default class Keyboard extends Input Extends: Input
| Constructor | Description |
|---|---|
| (constructor)(viewer) | Constructs a new instance of the Keyboard class |
| Property | Modifiers | Description |
|---|---|---|
| key | The current key. | |
| keyCode | The current key code. | |
| repeat | Whether the key is held. |
| Method | Description |
|---|---|
| addKeyDownListener(reaction, name) | Add key down event listener. |
| addKeyUpListener(reaction, name) | Add key up event listener. |
| destroy() | Release all resources in the keyboard object. |