Hi all,
If you're a game developer and you want to build a Mac or PC game that uses the Joy-Con, I wrote a Unity library that lets you do that.
It parses accel/gyro data, lets you control HD Rumble, and of course reads the buttons and stick.
For now it only supports one Joy-Con at a time, as I have been working on the Joy-Con as a potential future control scheme for the HoloPlayer One by Looking Glass, where I work. Yep, I actually got paid to do this, it's awesome.
It should be noted that my sensor fusion code, which handles Joy-Con position estimation, is basically hot garbage right now. The Joy-Con doesn't have a magnetometer, so full 6dof position estimation is impossible. I'm aiming to get position estimation accuracy on par with that treasure chest game in 1-2-Switch. The Unity package comes by default with position estimation disabled, but will still return raw IMU data converted to Gs (accelerometer) and dps (gyroscope). I use the calibration values stored in the Joy-Con SPI flash, so the gyro values are actually pretty accurate.
If you want to help improve my position estimation, I'd welcome pull requests. The code I have right now is currently built on top of this guide.
Thanks a lot to CTCaer for all the help.
Um, I'm a new user, so I had to scrub this post of links before the forum would let me put it up. If someone can tell me how many posts I have to have before I can add links that'd be great.
Here is a link to the library:
github.
com/Looking-Glass/JoyconLib
Here is the guide I used for sensor fusion code:
starlino.
com/imu_guide.html
If you're a game developer and you want to build a Mac or PC game that uses the Joy-Con, I wrote a Unity library that lets you do that.
It parses accel/gyro data, lets you control HD Rumble, and of course reads the buttons and stick.
For now it only supports one Joy-Con at a time, as I have been working on the Joy-Con as a potential future control scheme for the HoloPlayer One by Looking Glass, where I work. Yep, I actually got paid to do this, it's awesome.
It should be noted that my sensor fusion code, which handles Joy-Con position estimation, is basically hot garbage right now. The Joy-Con doesn't have a magnetometer, so full 6dof position estimation is impossible. I'm aiming to get position estimation accuracy on par with that treasure chest game in 1-2-Switch. The Unity package comes by default with position estimation disabled, but will still return raw IMU data converted to Gs (accelerometer) and dps (gyroscope). I use the calibration values stored in the Joy-Con SPI flash, so the gyro values are actually pretty accurate.
If you want to help improve my position estimation, I'd welcome pull requests. The code I have right now is currently built on top of this guide.
Thanks a lot to CTCaer for all the help.
Um, I'm a new user, so I had to scrub this post of links before the forum would let me put it up. If someone can tell me how many posts I have to have before I can add links that'd be great.
Here is a link to the library:
github.
com/Looking-Glass/JoyconLib
Here is the guide I used for sensor fusion code:
starlino.
com/imu_guide.html