mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Merge pull request #2868 from hilts-vaughan/issue-2806
Keys: Fixed an issue where the name annotations were missing on some …
This commit is contained in:
commit
34080eda6f
1 changed files with 11 additions and 9 deletions
|
@ -290,6 +290,7 @@ Phaser.Key.prototype = {
|
|||
* You can only call justDown once per key press. It will only return `true` once, until the Key is released and pressed down again.
|
||||
* This allows you to use it in situations where you want to check if this key is down without using a Signal, such as in a core game loop.
|
||||
*
|
||||
* @name Phaser.Key#justDown
|
||||
* @property {boolean} justDown
|
||||
* @memberof Phaser.Key
|
||||
* @default false
|
||||
|
@ -312,6 +313,7 @@ Object.defineProperty(Phaser.Key.prototype, "justDown", {
|
|||
* You can only call justUp once per key release. It will only return `true` once, until the Key is pressed down and released again.
|
||||
* This allows you to use it in situations where you want to check if this key is up without using a Signal, such as in a core game loop.
|
||||
*
|
||||
* @name Phaser.Key#justUp
|
||||
* @property {boolean} justUp
|
||||
* @memberof Phaser.Key
|
||||
* @default false
|
||||
|
@ -331,7 +333,7 @@ Object.defineProperty(Phaser.Key.prototype, "justUp", {
|
|||
/**
|
||||
* An enabled key processes its update and dispatches events.
|
||||
* A key can be disabled momentarily at runtime instead of deleting it.
|
||||
*
|
||||
* @name Phaser.Key#enabled
|
||||
* @property {boolean} enabled
|
||||
* @memberof Phaser.Key
|
||||
* @default true
|
||||
|
|
Loading…
Reference in a new issue