ControllerBuddy
ControllerBuddy copied to clipboard
Switch from Pure Java HID-API to hid4java
Since Pure Java HID-API seems to be pretty much abandonned and requires a number of workarounds in order to work correctly, switching to an alternative HID library remains a medium term goal.
Fortunately hid4java which is based on hidapi got recently resurrected from the dead.
The hid4java branch contains all necessary changes required to do the switch and works fine on Windows.
Unfortunately hidapi currently does not allow opening a device in non-exclusive mode on macOS which blocks the switchover: https://github.com/libusb/hidapi/issues/27
Once the issue is fixed and there is a build of hid4java based on an updated hidapi version, switching is possible. An alternative would be to build custom versions hidapi and hid4java with the following patch: https://github.com/signal11/hidapi/pull/297