-
Notifications
You must be signed in to change notification settings - Fork 16
key
Eloy Villasclaras edited this page Apr 13, 2016
·
1 revision
<key>
adds a key to the game keyboard input. It must be a child of
<input>
.
Property | Notes |
---|---|
keyCode |
Phaser key code, e.g. Phaser.KeyCode.P
|
keyName |
Name given to the key object for callbacks (see cursor key names) |
onDown |
Callback for the onDown event. Receives two parameters:
|
onUp |
Callback for the onUp event. Receives two parameters:
|
onHoldCallback |
Callback for the onHold event. Receives two parameters:
|