Home > @modelo.io/api > Keyboard

Keyboard class

Signature:

export default class Keyboard extends Input 

Constructors

ConstructorDescription
(constructor)(viewer)Constructs a new instance of the Keyboard class

Properties

PropertyModifiersDescription
keyThe current key's scancode.

Methods

MethodDescription
addKeyDownListener(cbk)Add key down event listener.
addKeyUpListener(cbk)Add key up event listener.
destroy()Release all resources in the keyboard object.