Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Pure Java HID-API to hid4java #8

Closed
bwRavencl opened this issue Aug 13, 2020 · 0 comments
Closed

Switch from Pure Java HID-API to hid4java #8

bwRavencl opened this issue Aug 13, 2020 · 0 comments
Assignees

Comments

@bwRavencl
Copy link
Owner

bwRavencl commented Aug 13, 2020

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: libusb/hidapi#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: signal11/hidapi#297

@bwRavencl bwRavencl self-assigned this Aug 13, 2020
@bwRavencl bwRavencl added the mac macOS related issues label May 24, 2022
@bwRavencl bwRavencl removed the mac macOS related issues label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant