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
230 stars 72 forks source link

Improve device identification #4

Closed jbliesener closed 9 years ago

jbliesener commented 9 years ago

Some HID devices use more than one interface. For that case, I suggest that you include the interface number in HidDeviceInfo.getId() or - maybe even better - just use the unique device path as ID.

gary-rowe commented 9 years ago

Agreed. Merged the code in your pull request.