InputController.ts
three.js and WebGL · 3D · MIT
- What it does
Keyboard (WASD and arrows, Space or Shift to dash) and a touch stick merged into one movement vector, with pointer-cancel handling so a control cannot stick down.
- Get it
const input = new InputController(stickEl, knobEl, dashButtonEl); input.readMovement(vec2); input.isDashHeld();
- Needs (the whole pack)
Nothing to read the skills. To run what they build: Node and npm, Python 3 for the helper scripts, and Chromium through Playwright for the inspector and tests. Optional and paid: Tripo, Gemini and ElevenLabs keys for the three generator skills.
- License
MIT
- From