Key#Key

new Key(game, keycode)

If you need more fine-grained control over the handling of specific keys you can create and use Phaser.Key objects.

Parameters
Name Type Description
game Phaser.Game

Current game instance.

keycode integer

The key code this Key is responsible for. See Phaser.KeyCode.

Source code: input/Key.js (Line 15)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.