mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Add keyboardManaged#createCursorKeys typedefs
This commit is contained in:
parent
e0dc28e4ba
commit
c08f769351
1 changed files with 12 additions and 1 deletions
|
@ -190,13 +190,24 @@ var KeyboardManager = new Class({
|
|||
this.target.removeEventListener('keyup', this.handler);
|
||||
},
|
||||
|
||||
/**
|
||||
* @typedef {object} CursorKeys
|
||||
*
|
||||
* @property {Phaser.Input.Keyboard.Key} [up] - [description]
|
||||
* @property {Phaser.Input.Keyboard.Key} [down] - [description]
|
||||
* @property {Phaser.Input.Keyboard.Key} [left] - [description]
|
||||
* @property {Phaser.Input.Keyboard.Key} [right] - [description]
|
||||
* @property {Phaser.Input.Keyboard.Key} [space] - [description]
|
||||
* @property {Phaser.Input.Keyboard.Key} [shift] - [description]
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creates and returns an object containing 4 hotkeys for Up, Down, Left and Right, and also space and shift.
|
||||
*
|
||||
* @method Phaser.Input.Keyboard.KeyboardManager#createCursorKeys
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return {object} [description]
|
||||
* @return {CursorKeys} [description]
|
||||
*/
|
||||
createCursorKeys: function ()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue