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

HidServices.getHidDevice() can never return an object because it is never opened #57

Closed madhephaestus closed 7 years ago

madhephaestus commented 7 years ago

GetHIDDevice call checks to see if the device is open before returning. Since the device has not been returned yet, it would need to be open before retrieval.

This function is also needed for Matlab access to HID Devices due to limitations in Matlab's iteration framework.