input-keyboard-mouse-touch

Community

Unified input control for keyboard, mouse, touch.

AuthorRaphe-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Phaser developers frequently juggle inputs from keyboard, mouse, touch, pointer, drag-and-drop, hit areas, and gamepad across scenes. This Skill provides a unified input system exposed as this.input, covering polling, events, and per-object interaction to simplify building responsive, interactive games.

Core Features & Use Cases

  • Unified Input Plugin: access keyboard, pointer, mouse, touch, and gamepad within a single API per Scene.
  • Pointer, Drag & Hit Testing: manage multiple pointers, draggable objects, custom hit areas, and pixel-perfect hit tests for interactive sprites.
  • Keyboard & Gamepad: create keys, combos, capture keys to prevent browser defaults, and handle cross-device input in gameplay logic.
  • Event model: three levels of pointer events (per-object Game Object, per-object Scene, and global Scene) plus standard Game Object events for comprehensive input handling.

Quick Start

Create a simple scene by enabling keyboard and pointer input, making a game object interactive, and handling pointer and drag events.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: input-keyboard-mouse-touch
Download link: https://github.com/Raphe-dev/phaser-cozy-mmo/archive/main.zip#input-keyboard-mouse-touch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.