vtj-input-system

Community

Unified input for precise 3D controls.

AuthorhexianWeb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a cohesive input system for web-based 3D applications, unifying mouse, keyboard, and touch interactions to enable predictable raycasting, camera control, and object interactions.

Core Features & Use Cases

  • Unified input layers: IMouse tracks normalized and DOM coordinates, InputManager broadcasts key/button states, and PointerLockManager enables FPS-style lock.
  • Event-driven controls: Uses mitt to emit and consume input events, simplifying integration with Players, Cameras, and interactables.
  • Use Case: In a Three.js scene, implement raycasting from the center screen for picking and enable camera orbit or character control with consistent input across devices.

Quick Start

Start by wiring the three-layer input system (IMouse, InputManager, and PointerLockManager) into your Experience, then subscribe to input events to drive movement and interactions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: vtj-input-system
Download link: https://github.com/hexianWeb/Third-Person-MC/archive/main.zip#vtj-input-system

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 223,000+ vetted skills library on demand.