Looking-Glass / JoyconLib

Joy-Con library for Unity.
MIT License
467 stars 91 forks source link

Getting hidapi.dll to work with Hololens #32

Open janezk7 opened 4 years ago

janezk7 commented 4 years ago

Hello!

I tried using this library with Unity editor with holographic emulation for Hololens. Works as it should with 64-bit version of hidapi.dll (as Unity editor only supports 64-bit plugins as far as I know), taken from Unity-Wiimote-Master package (followed this tutorial : http://baba-s.hatenablog.com/entry/2017/11/12/090000). I'm having trouble getting the thing to build and work on Hololens. The issue is with hidapi.dll. 64-bit version doesn't work, since Hololens only supports 32-bit binaries. And building the project with a 32-bit version of hidapi.dll makes the application crash upon startup on Hololens. The code crashes on hidapi's hid_init() method.

On a related matter, is there any way to test input from controller on hololens ? I can pair Joycon in Settings without an issue and it says its connected, but haven't found a way to test it.

Tried on Unity version 2018.4.10f1.

Any help would be appreciated !

everyone-else-stole-the-good-usernames commented 4 years ago

have you tried 32 bit unity?