Ihor Dutchak
Ihor Dutchak
there shouldn't be such thing as "how many" - normally you poll intinitelly, until `hid_read_timeout` return value
do you have delays between pooling?
This may be a Windows backend limitation.
> This is an interesting and quick solution. But I kind of like the other more elegant solution. > > > 1.) Execute a dummy read of each input report...
Lets make it for the feature branch: https://github.com/libusb/hidapi/tree/connection-callback
This is a large (even though important) change. Please target it agains https://github.com/libusb/hidapi/tree/connection-callback branch, instead of master, for now.
> Maybe this one can be considered for next next release like 0.13? Too many stubs. Need to design/implement for all platforms, before we can release it. It is all...
Thanks for the analysis. > `struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_get_device_info(hid_device *dev);` I think this would be the way to go - way more flexible in a long term. >...
NOTE for everyone: hidapi not thread-safe in general, with a few platform-specific/usage-spacific exceptions. Damn, I need to get my hands to describe everything in details.
0.13 already includes a lot of good improvements, so I guess making a release (before Christmas) would be a good thing regardless if it is going to include the multithreaded...