input-keyboard-mouse-touch

Manage keyboard, mouse, touch, and gamepad input in Phaser 4 scenes.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/jallard-007/jallard-ca-server --skill input-keyboard-mouse-touch-jallard-007
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: input-keyboard-mouse-touch
Source: https://github.com/jallard-007/jallard-ca-server/tree/main/.github/skills/input-keyboard-mouse-touch
Command: npx skills add https://github.com/jallard-007/jallard-ca-server --skill input-keyboard-mouse-touch-jallard-007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Unified input handling across keyboard, mouse/pointer, touch, and gamepad in Phaser 4 scenes, enabling consistent event wiring and interaction patterns.

Core Features & Use Cases

  • Keyboard: capture keys, create cursors, and handle key events.
  • Pointer: read positions, drag/drop, wheel, pointer lock, and per-object events.
  • Game Objects: interactive hit areas, hit testing, and draggable elements.
  • Gamepad: support D-pad/buttons/axes with per-pad events and hardware tests.

Quick Start

Create a Phaser Scene and implement keyboard, pointer, drag-and-drop, and gamepad input using the unified input system described.

Frequently Asked Questions about input-keyboard-mouse-touch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle keyboard, mouse, touch, and gamepad input in Phaser 4?▼

You can implement drag-and-drop and hit areas in Phaser 4 by using the unified input system to define interactive hit areas, perform hit testing, and enable draggable elements for pointer interactions.

Can I capture gamepad D-pad and button states in a Phaser scene?▼

Yes, gamepad input supports D-pad, buttons, and axes with per-pad events and hardware tests, allowing you to capture and respond to gamepad states within Phaser scenes.

What is the best way to unify input events across multiple Phaser scenes?▼

You can implement drag-and-drop and hit areas in Phaser 4 by using the unified input system to define interactive hit areas, perform hit testing, and enable draggable elements for pointer interactions.

Does Phaser 4 support pointer lock and wheel events for game objects?▼

Yes, pointer interactions in Phaser 4 support reading positions, wheel events, and pointer lock, alongside per-object events for interactive game elements.

How do I set up interactive hit areas and draggable game objects in Phaser?▼

You can implement drag-and-drop and hit areas in Phaser 4 by using the unified input system to define interactive hit areas, perform hit testing, and enable draggable elements for pointer interactions.