Documentation
play-u1 is the npm package @interfaces-technology/play-u1. Use these guides to wire controllers in a browser app or React client component, then open the generated TypeScript reference when you need exact types.
Suggested path
- Quick start — run a minimal example and see connect / press / stick events.
- Installation — npm, entry points, and registry fixes if installs fail.
- Concepts → Input events when you are ready for the full event surface.
- React or WebHID if your stack needs them.
Start here
Quick startShip something in a few lines: manager, connect handler, named buttons and sticks.Installationnpm install, import paths, and fix scope/registry issues when `@interfaces-technology` resolves wrong.Links & resourcesnpm, this site, API reference, MCP, changelog, and repo—bookmark one page.MCP for assistantsPoint Cursor, Claude Code, or VS Code at a URL so agents can search these guides and TypeDoc.
Guides
ConceptsManager lifecycle, one rAF loop, dead zones, and how layouts turn indices into names.Input eventsEverything you can subscribe to on a pad: gestures, sticks, triggers, snapshots, cleanup.ReactClient-only hooks with correct start/stop—useGamepadManager, useGamepads, useGamepadSnapshot.Rumble & snapshotsVibrate helpers plus readPads / snapshots when you want state without the full manager.WebHIDChromium-only pairing helpers when you need HID alongside the normal Gamepad API.