Const
The Key Up Event.
This event is dispatched by a [Key]Phaser.Input.Keyboard.Key object when it is released.
Listen for this event from the Key object instance directly:
var spaceBar = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);spaceBar.on('up', listener) Copy
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]Phaser.Input.Keyboard.Events#event:ANY_KEY_UP for details.
The Key Up Event.
This event is dispatched by a [Key]Phaser.Input.Keyboard.Key object when it is released.
Listen for this event from the Key object instance directly:
You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_UP]Phaser.Input.Keyboard.Events#event:ANY_KEY_UP for details.