new KeyboardHandler(canvas)
Handles keyboard button presses
Parameters:
Name | Type | Description |
---|---|---|
canvas |
Canvas |
- Source:
Methods
(static) isKeyDown(key) → {Boolean}
Returns true if key is pressed
Parameters:
Name | Type | Description |
---|---|---|
key |
String |
- Source:
Returns:
isDown
- Type
- Boolean
update()
Description
- Source: