input-keyboard-mouse-touch

Unify keyboard, mouse, touch, and gamepad input handling for Phaser scenes.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill input-keyboard-mouse-touch-giantcroissant-lunar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: input-keyboard-mouse-touch
Source: https://github.com/GiantCroissant-Lunar/proto-breakout/tree/main/.agent/skills/01-phaser/input-keyboard-mouse-touch
Command: npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill input-keyboard-mouse-touch-giantcroissant-lunar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Phaser projects often require robust input across multiple devices, making cross‑device handling verbose and error-prone.

Core Features & Use Cases

  • Unified input access via this.input across Scenes
  • Supports keyboard, pointer, touch, drag, drop, hit areas, and gamepad
  • Real-world scenario: control a character with WASD and mouse, plus tap inputs on mobile

Quick Start

Create a Phaser scene and enable keyboard, pointer, and gamepad input handling using the unified input system.

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 accessing this.input. It provides built-in support for interactive UI, drag-and-drop, hit areas, and multi-pointer events across desktop and mobile devices.

Does Phaser support gamepad input for cross-platform 2D games?▼

Phaser supports gamepad input alongside keyboard, mouse, and touch for cross-platform 2D games. The unified input system allows character control with WASD and mouse, plus tap inputs on mobile, satisfying diverse device requirements.

Can I use drag-and-drop and hit areas with multi-pointer support in Phaser?▼

Multi-pointer support for drag-and-drop and hit areas is available in Phaser through the unified input system. It enables scene-based input handling for interactive UI elements across both desktop and mobile platforms.

What's the best way to unify input handling across devices in Phaser?▼

The best way to unify input handling across devices in Phaser is using the scene-based input system via this.input. It consolidates keyboard, pointer, touch, drag, drop, hit areas, gamepad, and pointer lock into one interface, reducing verbose and error-prone code.

How do I set up keyboard combos and pointer lock in a Phaser game?▼

Set up keyboard combos and pointer lock in a Phaser game by using the scene-based input system. It provides access to this.input for configuring keyboard combinations, pointer lock, and gamepad support within your 2D game development workflow.