-
Notifications
You must be signed in to change notification settings - Fork 7.1k
/
UP_EVENT.js
29 lines (28 loc) · 987 Bytes
/
UP_EVENT.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2024 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Key Up Event.
*
* This event is dispatched by a [Key]{@link Phaser.Input.Keyboard.Key} object when it is released.
*
* Listen for this event from the Key object instance directly:
*
* ```javascript
* var spaceBar = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);
*
* spaceBar.on('up', listener)
* ```
*
* You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_UP]{@linkcode Phaser.Input.Keyboard.Events#event:ANY_KEY_UP} for details.
*
* @event Phaser.Input.Keyboard.Events#UP
* @type {string}
* @since 3.0.0
*
* @param {Phaser.Input.Keyboard.Key} key - The Key object that was released.
* @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about any modifiers, etc.
*/
module.exports = 'up';