phaser-input
Installation
SKILL.md
Phaser 4 Input
Phaser 4's Input system supports keyboard, mouse/pointer, touch, and gamepad. All input is accessed through this.input inside a Scene.
Keyboard Input
Cursor Keys
Create a cursor key set to track arrow keys, space, and shift in one call:
private cursors!: Phaser.Types.Input.Keyboard.CursorKeys;
create(): void {
this.cursors = this.input.keyboard!.createCursorKeys();
}