touch-input-handling
Installation
SKILL.md
Touch Input Handling
When to Use
Use this skill when:
- Building mobile Three.js games
- Implementing touch controls
- Creating virtual joysticks
- Supporting multi-touch gestures
- Converting mouse code to touch
Core Principles
- Touch Events: Use touchstart/touchmove/touchend
- Gesture Detection: Recognize swipes, pinch, rotate
- Virtual Controls: Joysticks and buttons for mobile
- Multi-touch: Support multiple simultaneous touches
- Prevent Default: Stop unwanted scrolling/zooming
- Normalize Input: Abstract mouse and touch to unified API