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();
}
Installs
15
GitHub Stars
9
First Seen
Apr 12, 2026
phaser-input — yakoub-ai/phaser4-gamedev