https://github.com/Looking-Glass/JoyconLib
Joy-Con library for Unity.
https://github.com/Looking-Glass/JoyconLib
Last synced: about 2 months ago
JSON representation
Joy-Con library for Unity.
- Host: GitHub
- URL: https://github.com/Looking-Glass/JoyconLib
- Owner: Looking-Glass
- License: mit
- Archived: true
- Created: 2017-09-11T15:13:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T05:02:49.000Z (over 2 years ago)
- Last Synced: 2024-11-10T17:46:41.813Z (7 months ago)
- Language: C#
- Homepage:
- Size: 124 KB
- Stars: 472
- Watchers: 32
- Forks: 90
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - JoyconLib - Joy-Con library (Controller)
README
# JoyconLib

Nintendo Switch Joy-Con library for Unity. Featuring: button/stick polling, HD rumble, and accelerometer data processing.
To use, add an empty GameObject to your scene and attach JoyconManager.cs. Look at JoyconDemo.cs for sample code to get you up and running.
With thanks/apologies to [CTCaer](https://github.com/ctcaer/jc_toolkit/), [dekuNukem](https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering), [shinyquagsire23](https://github.com/shinyquagsire23/HID-Joy-Con-Whispering), [mfosse](https://github.com/mfosse/JoyCon-Driver), and [riking](https://github.com/riking/joycon).
Uses C# glue code and [HIDAPI](https://github.com/signal11/hidapi) binaries from [Unity-Wiimote](https://github.com/Flafla2/Unity-Wiimote)
GetVector method (attempt at sensor fusion implementation) is still unreliable! Enable in JoyconManager at your own risk. Sensor fusion code is in Joycon.ProcessIMU. Feel free to submit pull requests; sensor fusion code based on [this guide](starlino.com/imu_guide.html).