This covers Phaser 4's unified input system, the part of the framework you'll interact with constantly for any game with user controls. It walks through keyboard polling with cursor keys and addKey, pointer events for clicks and taps, making Game Objects interactive with setInteractive (including pixel-perfect hit testing), and the full Pointer API with properties like isDown, worldX/worldY, and button states. The source code references are solid (InputPlugin.js, KeyboardPlugin.js, Pointer.js) and the examples show both event-driven and polling patterns. Gamepad support is mentioned but not deeply documented here. If you're building anything beyond a purely reactive game, you'll need the keyboard polling patterns and the distinction between global pointer events versus per-object interactive handlers.
npx -y skills add phaserjs/phaser --skill input-keyboard-mouse-touch --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills