InfoControls

InfoControls

Add an event when a certain key is pressed. The event run a callback

Constructor

new InfoControls(key)

Source:

Constructor.

Parameters:
Name Type Default Description
key string i

the key triggering the event, by default i

Classes

InfoControls

Members

action :function

Source:

The callback called by the event

Type:
  • function

key :string

Source:

The key triggering the event

Type:
  • string

Methods

onKeyDown(event)

Source:

Event handler when a key is pressed

Parameters:
Name Type Description
event KeyboardEvent

the caught event