input-keyboard-mouse-touch

Unify keyboard, pointer, touch, and gamepad input in Phaser scenes.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill input-keyboard-mouse-touch-arnaudruffin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: input-keyboard-mouse-touch
Source: https://github.com/arnaudruffin/dvx-phaser-game/tree/main/.agents/skills/input-keyboard-mouse-touch
Command: npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill input-keyboard-mouse-touch-arnaudruffin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Streamlines handling of user input across keyboard, mouse/pointer, touch, and gamepad in Phaser-based games, enabling responsive controls and interactive UI.

Core Features & Use Cases

  • Unified input system across keyboard, mouse/pointer, touch, and gamepad for Phaser scenes.
  • Supports setInteractive hit areas, drag-and-drop, and three levels of pointer events (gameObject, scene per-object, scene global).
  • Gamepad support, multi-pointer, and combo input to create rich interactions.
  • Real-world use: wire up WASD movement, clicking enemies, drag-and-drop inventory, and controller input in a single system.

Quick Start

Initialize the input system in your Phaser scene to handle keyboard, pointer, touch, and gamepad input for interactive objects.

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, and touch input in a Phaser scene?▼

You can unify keyboard, mouse, and touch input in a Phaser scene by initializing an input plugin that exposes these devices through a single system. This enables responsive interactive controls and UI input.

Can I use a gamepad and combo input with Phaser interactive objects?▼

Yes, gamepad support and combo input are supported within this unified Phaser input system. This allows you to wire up controller input alongside keyboard and pointer events to create rich multi-device interactions for interactive objects.

What's the best way to implement drag-and-drop inventory in Phaser?▼

The best way to implement drag-and-drop in Phaser is using an input plugin that supports setInteractive hit areas and dedicated drag-and-drop events. This directly enables dragging inventory items across single- or multi-camera scenes.

Does Phaser support multi-camera scenes for pointer events and hit areas?▼

Yes, the input plugin supports multi-camera scenes alongside multi-pointer support. It processes setInteractive hit areas and provides three levels of pointer events: per-gameObject, scene per-object, and scene global.

Why use a unified input system instead of separate Phaser device listeners?▼

Using a unified input system instead of separate device listeners streamlines handling keyboard, mouse, touch, and gamepad inputs. This prevents input conflicts and simplifies wiring complex interactions like combat and exploration mechanics.