{"id":13912394,"url":"https://github.com/endel/pixi-virtual-joystick","last_synced_at":"2025-04-12T20:08:16.176Z","repository":{"id":94804176,"uuid":"316581091","full_name":"endel/pixi-virtual-joystick","owner":"endel","description":"🕹 Virtual Touch Joystick for pixi.js","archived":false,"fork":false,"pushed_at":"2023-03-12T13:05:46.000Z","size":1372,"stargazers_count":64,"open_issues_count":3,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T20:07:11.401Z","etag":null,"topics":["joystick","joystick-library","pixijs","virtual-joystick"],"latest_commit_sha":null,"homepage":"https://gamestdio.github.io/pixi-virtual-joystick/","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/endel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"endel","patreon":"endel","open_collective":null,"ko_fi":"endeld","tidelift":null,"custom":"https://www.paypal.me/endeld"}},"created_at":"2020-11-27T19:10:50.000Z","updated_at":"2025-04-03T10:02:52.000Z","dependencies_parsed_at":"2023-05-09T17:45:45.026Z","dependency_job_id":null,"html_url":"https://github.com/endel/pixi-virtual-joystick","commit_stats":null,"previous_names":["endel/pixi-virtual-joystick"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fpixi-virtual-joystick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fpixi-virtual-joystick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fpixi-virtual-joystick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fpixi-virtual-joystick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/pixi-virtual-joystick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["joystick","joystick-library","pixijs","virtual-joystick"],"created_at":"2024-08-07T01:01:24.630Z","updated_at":"2025-04-12T20:08:16.155Z","avatar_url":"https://github.com/endel.png","language":"TypeScript","funding_links":["https://github.com/sponsors/endel","https://patreon.com/endel","https://ko-fi.com/endeld","https://www.paypal.me/endeld"],"categories":["others"],"sub_categories":[],"readme":"# 🕹 pixi-virtual-joystick\n\nVirtual Touch Joystick for [pixi.js](https://github.com/pixijs/pixi.js), tested on both Pixi v5 and Pixi v6.\n\n\u003cimg src=\"screenshot.gif?raw=1\" /\u003e\n\n## Usage\n\n```typescript\nimport { Joystick } from \"pixi-virtual-joystick\";\n\nconst joystick = new Joystick({\n  outer: PIXI.Sprite.from(\"outer\"), // (\"images/joystick.png\")\n  inner: PIXI.Sprite.from(\"inner\"), // (\"images/joystick-handle.png\")\n\n  outerScale: { x: 0.5, y: 0.5 },\n  innerScale: { x: 0.8, y: 0.8 },\n\n  onChange: (data) =\u003e {\n    console.log(data.angle); // Angle from 0 to 360\n    console.log(data.direction); // 'left', 'top', 'bottom', 'right', 'top_left', 'top_right', 'bottom_left' or 'bottom_right'.\n    console.log(data.power); // Power from 0 to 1\n  },\n\n  onStart: () =\u003e {\n    console.log('start')\n  },\n\n  onEnd: () =\u003e {\n    console.log('end')\n  },\n});\n\napp.stage.addChild(joystick);\n```\n\n## Similar alternatives\n\n- [nipplejs](https://github.com/yoannmoinet/nipplejs/) (more features, DOM-based)\n- [react-nipple](https://github.com/loopmode/react-nipple)\n\n## License\n\nEndel Dreyer © MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fpixi-virtual-joystick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fpixi-virtual-joystick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fpixi-virtual-joystick/lists"}