{"id":15639297,"url":"https://github.com/inokinoki/libjoycon","last_synced_at":"2025-04-19T11:40:05.140Z","repository":{"id":42583365,"uuid":"385726497","full_name":"Inokinoki/libjoycon","owner":"Inokinoki","description":"A lib to encode/decode Joycon Bluetooth packet.","archived":false,"fork":false,"pushed_at":"2023-03-28T17:35:04.000Z","size":116,"stargazers_count":87,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T07:22:33.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inokinoki.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,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Inokinoki"}},"created_at":"2021-07-13T20:23:25.000Z","updated_at":"2025-01-07T09:52:14.000Z","dependencies_parsed_at":"2024-10-22T17:15:59.478Z","dependency_job_id":null,"html_url":"https://github.com/Inokinoki/libjoycon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Flibjoycon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Flibjoycon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Flibjoycon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Flibjoycon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inokinoki","download_url":"https://codeload.github.com/Inokinoki/libjoycon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685276,"owners_count":21310576,"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":[],"created_at":"2024-10-03T11:25:19.047Z","updated_at":"2025-04-19T11:40:05.091Z","avatar_url":"https://github.com/Inokinoki.png","language":"C","funding_links":["https://github.com/sponsors/Inokinoki"],"categories":[],"sub_categories":[],"readme":"# libjoycon [![CMake](https://github.com/Inokinoki/libjoycon/actions/workflows/cmake.yml/badge.svg)](https://github.com/Inokinoki/libjoycon/actions/workflows/cmake.yml)\n\nA Joycon packet encoding and decoding lib\n\n## Build\n\nThe library itself only links to the libm (math lib):\n\n```\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n```\n\nIf you want to build examples, the HIDAPI lib is a must. The OpenGL and GLUT/Vulkan is necessary to build IMU Mapping. Configure the project with `BUILD_EXAMPLE` as follows:\n\n```\ncmake -DBUILD_EXAMPLE=ON ..\n```\n\n### Python bindings\n\nIf `swig` is installed, bindings for python will also be built.\n\nTo use the Python examples, install `hidapi`(also and `taichi` to run the taichi example) in pip. In Linux, remember to build the `hidapi` manually in order to connect to Joycon through Linux hidraw API:\n\n```\ngit clone --recursive https://github.com/trezor/cython-hidapi.git\npython setup.py build --without-libusb\n```\n\n## Usage\n\nPlease refer the programs in `examples`.\n\n## Note\n\nNote that this library does not contain Bluetooth/USB HID implementation, you can use one on a specific platform, e.g. hidapi on Linux/Win, to read/send raw packets, and use this library to extract/encode information from/to the packets.\n\n## Having fun\n\nWhat can it do? Check these tweets:\n\n[IIInoki - Map Joycon to a cube](https://twitter.com/IIInoki/status/1416239484711079938)\n\n[IIInoki - Midi to Joycon rumble](https://mobile.twitter.com/IIInoki/status/1502913550607699969)\n\n## Credits\n\n- [Joycon reverse engineering](https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering) by dekuNukem\n- Joy-Con/Joycon is a trademark of Nintendo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finokinoki%2Flibjoycon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finokinoki%2Flibjoycon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finokinoki%2Flibjoycon/lists"}