{"id":51456645,"url":"https://github.com/luckasnix/three-gamepad-controls","last_synced_at":"2026-07-06T01:01:40.814Z","repository":{"id":358909763,"uuid":"1239018635","full_name":"luckasnix/three-gamepad-controls","owner":"luckasnix","description":"Gamepad support for Three.js controls.","archived":false,"fork":false,"pushed_at":"2026-07-04T19:57:20.000Z","size":451,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T21:12:20.620Z","etag":null,"topics":["controls","gamepad","javascript","library","three","tsdown","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luckasnix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-14T17:20:12.000Z","updated_at":"2026-07-04T19:57:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/luckasnix/three-gamepad-controls","commit_stats":null,"previous_names":["luckasnix/three-gamepad-controls"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/luckasnix/three-gamepad-controls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckasnix%2Fthree-gamepad-controls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckasnix%2Fthree-gamepad-controls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckasnix%2Fthree-gamepad-controls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckasnix%2Fthree-gamepad-controls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luckasnix","download_url":"https://codeload.github.com/luckasnix/three-gamepad-controls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckasnix%2Fthree-gamepad-controls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35174071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["controls","gamepad","javascript","library","three","tsdown","typescript"],"created_at":"2026-07-06T01:01:36.542Z","updated_at":"2026-07-06T01:01:40.706Z","avatar_url":"https://github.com/luckasnix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Three.js Gamepad Controls\n\nGamepad support for [Three.js](https://threejs.org) controls, built on top of [Web Gamepad API](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API).\n\n## Architecture\n\n![Architecture diagram showing GamepadManager used by GamepadInput, GamepadInput used by GamepadControls, and specific wrappers extending GamepadControls.](./assets/architecture-diagram.webp \"Three.js Gamepad Controls architecture\")\n\n## 📦 Installation\n\nnpm:\n\n```bash\nnpm i three three-gamepad-controls\nnpm i -D @types/three # optional: for TypeScript projects\n```\n\npnpm:\n\n```bash\npnpm add three three-gamepad-controls\npnpm add -D @types/three # optional: for TypeScript projects\n```\n\nYarn:\n\n```bash\nyarn add three three-gamepad-controls\nyarn add -D @types/three # optional: for TypeScript projects\n```\n\nDeno:\n\nWhen using `deno.json`, Deno stores dependencies in `imports` and does not separate `devDependencies`; `-D` only applies when writing to `package.json`.\n\n```bash\n# deno.json\ndeno add three @types/three three-gamepad-controls\n```\n\n```bash\n# package.json\ndeno add --package-json three three-gamepad-controls\ndeno add --package-json -D @types/three # optional: for TypeScript projects\n```\n\nBun:\n\n```bash\nbun add three three-gamepad-controls\nbun add -d @types/three # optional: for TypeScript projects\n```\n\n## 📖 Documentation\n\n- [Core](./docs/core.md) — The fundamental building blocks.\n- [GamepadInput](./docs/gamepad-input.md) - Low-level reader for gamepad buttons, axes, sticks, and transitions.\n- [GamepadControls](./docs/gamepad-controls.md) — Abstract base class for custom gamepad controls.\n- [GamepadArcballControls](./docs/gamepad-arcball-controls.md) - Gamepad support for `ArcballControls`.\n- [GamepadDragControls](./docs/gamepad-drag-controls.md) - Gamepad support for `DragControls`.\n- [GamepadFirstPersonControls](./docs/gamepad-first-person-controls.md) — Gamepad support for `FirstPersonControls`.\n- [GamepadFlyControls](./docs/gamepad-fly-controls.md) — Gamepad support for `FlyControls`.\n- [GamepadMapControls](./docs/gamepad-map-controls.md) — Gamepad support for `MapControls`.\n- [GamepadOrbitControls](./docs/gamepad-orbit-controls.md) — Gamepad support for `OrbitControls`.\n- [GamepadPointerLockControls](./docs/gamepad-pointer-lock-controls.md) — Gamepad support for `PointerLockControls`.\n- [GamepadTrackballControls](./docs/gamepad-trackball-controls.md) — Gamepad support for `TrackballControls`.\n- [GamepadTransformControls](./docs/gamepad-transform-controls.md) — Gamepad support for `TransformControls`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckasnix%2Fthree-gamepad-controls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckasnix%2Fthree-gamepad-controls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckasnix%2Fthree-gamepad-controls/lists"}