Constructor
new InfoControls(key)
- Source:
Constructor.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
key |
string |
i
|
the key triggering the event, by default |
Classes
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 |