Tags: cnsqqmapan/hidapi
Tags
windows: Add .rc (libusb#415) - Add resource file for DLL;
Don't use deprecated kIOMasterPortDefault (libusb#406) `kIOMasterPortDefault` is deprecated since macOS 12.0. One alternative is to use named constant `kIOMainPortDefault` which is not available before macOS 12.0. Both named constants are just an alias for `NULL`, so it is simpler to use it directly instead. Fixes: libusb#377
Parse USB interface number from device Hardware IDs (libusb#360) Strickly speaking we cannot parse interface string at all and only allowed to parse Hardware ID string.
Add <root>/libusb to includes for in-tree build Otherwise it is impossible to `#include <hidapi_libusb.h>`, when HIDAPI is added directly as a subdirectory of a CMake project.
add libusb-specific hid_libusb_wrap_sys_device Rationale: on Android one must use UsbManager, to access any USB device. As a result, libraries like libusb can only use file descriptors that are provided by UsbManager. libusb has an API to use such file descriptors: hid_libusb_wrap_sys_device. Having hid_libusb_wrap_sys_device currently is the only way to make hidapi work on Android without root access and without custom Android builds. Relevant info: https://github.com/libusb/libusb/pull/830/files
PreviousNext