JibbSmart / JoyShockLibrary

Read DualSense, DualShock 4, JoyCon, and Pro Controller input on PC -- compiled for Windows, but code should work on other platforms.
Other
240 stars 48 forks source link

GetMotionState not working? #15

Closed mromoli closed 4 years ago

mromoli commented 4 years ago

Hello! I'm developing a game in Unity x64 and wanted to use JoyShockLibrary for the joycons support. I'm calling JslGetMotionState(deviceId) every frame to get the lastest motion state data, it seems to not be working in any way. I've added the function in the JoyShockLibrary.cs, but still no success. GetImuState is working fine though.

Joycons are connected with bluetooth

Is there something that I am missing??

Solution: Found out I didn't set a callback with the "JslSetCallback", after doing that it started working!