hidapi
hidapi copied to clipboard
A Simple cross-platform library for communicating with HID devices
A rare combination of building HIDAPI on macOS as a standalone package (potentially to be installed somewhere in the system) but as a macOS Framework (as opposed to just Shared/Dylib...
This PR provides a solution to the possible issues that happen when a register or de-register call is made from inside a callback. The way it works is the same...
Where hid_get_input_report() was already available for some time, hid_send_output_report() was still missing. We have used our own fork with this function added for a couple of years now, but believe...
A small concern here: calling any Register or Unregister functions from within a callback may (and probably will) cause a deadlock. On Windows, Critical Sections seem to keep an internal...
Hi, could please someone give a hint: is it possible to increase timeout for send_feature_report() on Windows? I have the device, which takes a more than 5 sec sometimes for...
One of the known thread-safety-related limitations on MacOS is that hid_init and hid_exit have to be called on the same thread. The only thing hid_exit really does there is destroy...
Warnings
[Warnings are errors](https://dev.solita.fi/2014/03/26/warnings-are-errors.html), people! ``` linux/hidapi/hid.c:23: warning: "_GNU_SOURCE" redefined 23 | #define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */ | : note: this is the location of the...
Clang produces the following warnings:  It might be a good idea to address them to avoid seemingly random crashes. Additionally, the kernel error returned in HID device path generation...
I have seen other applications using `flock` on their open `hidraw` file descriptors to open them exclusively. This is not the default for `hidapi` but I am not asking for...