gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
223 stars 70 forks source link

How do I use it in MacOS? #111

Closed a751116023 closed 3 years ago

a751116023 commented 3 years ago

English: How do I use it in MacOS? I plugged the Hid device into macOS, but I couldn't find it in HidJava. As described in the HidAPI project, on Macos you need to use IOHidManager, but I didn't find the IOHidManager class in HidJava.

Chinese: 如何在MacOS中使用它?我将Hid设备插入到macOS中,但是我通过HidJava找不到Hid设备。在HidAPI项目中介绍了,在Macos上需要使用IOHidManager,但我没有在HidJava中找到IOHidManager类

a751116023 commented 3 years ago

English: Sorry, I forgot to execute hidapi.init ()After executing the method, it works normally Chinese: 不好意思,忘了执行HidApi.init();执行该方法后,运行正常