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
229 stars 71 forks source link

added option to open devices on darwin in non-exclusive mode #132

Closed DaPutzy closed 1 year ago

DaPutzy commented 1 year ago

Closes gary-rowe/hid4java#131

Requires libhidapi 0.12.0.

Tested locally with libhidapi.0.12.0.dylib and jna 5.8.0 on M1 Max Macbook Pro.

tresf commented 1 year ago

Thanks for creating a separate PR! I think it will make it trivial for Gary to merge (e.g. vs. placing it on top of the arm64 PR).

I've reviewed the PR and it looks great. I just made a couple in-line comments.

gary-rowe commented 1 year ago

Thank you @DaPutzy and @tresf for implementing and reviewing it. I think it'll be a great addition to hid4java.