Attach a listener to the object. The callback will be executed when the event is emitted. Mutate the object.
For all available events, see: https://photonstorm.github.io/phaser3-docs/Phaser.Input.Events.html
For list of keycodes, see: https://github.com/photonstorm/phaser/blob/v3.22.0/src/input/keyboard/keys/KeyCodes.js
keyboard key to trigger listener
the event name
listener function, executed on event
listener game object
Attach a listener to the object. The callback will be executed when the event is emitted. Mutate the object.
For all available events, see: https://photonstorm.github.io/phaser3-docs/Phaser.Input.Events.html
For list of keycodes, see: https://github.com/photonstorm/phaser/blob/v3.22.0/src/input/keyboard/keys/KeyCodes.js