Keyboard

Keyboard

Handled the keyboard input of an application on a PC.

Constructor

new Keyboard(eh)

Source:
Parameters:
Name Type Description
eh DOMEventHandler

Classes

Keyboard

Members

keys :Object.<string, boolean>

Description:
  • Dictionary of keys showing if they are active or not.
Source:
Dictionary of keys showing if they are active or not.
Type:
  • Object.<string, boolean>

Methods

init(eh)

Description:
  • Adds Keyboard events to the DOM.
Source:
Parameters:
Name Type Description
eh DOMEventHandler