Skip to content

hidapi-0.16.0

Latest

Choose a tag to compare

@Youw Youw released this 15 Nov 21:20
750c87a

general: add hid_read_interrupt(), hid_is_read_interrupted(), and hid_read_clear_interrupt() for read interruption (#799)
general: add hid_set_num_input_buffers() for configuring input report buffering (#787)

FreeBSD: add a native hidraw backend (#730)

libusb: implement error reporting, including hid_libusb_error() (#708)
libusb: add configurable timeouts for writes, output reports, and feature reports (#832)
libusb: handle input reports larger than a USB packet (#728)
libusb: handle read-thread creation failure without hanging device opening (#843)

hidraw: add support for BUS_VIRTUAL (#745)
hidraw: populate release_number from HID_FIRMWARE_VERSION when supplied by the Linux kernel (#847)

winapi: fix duplicate-symbol warnings in static CMake builds (#809)
winapi: improve C99 and WIN32_LEAN_AND_MEAN compatibility (#810, #768)
winapi: add Visual Studio 2026 support (#771)

macOS: fix compilation with newer Apple Clang (#816)

NetBSD: improve root-hub discovery and iconv compatibility (#780, #779)

general: add HIDAPI_BUILD_AS_CXX for compiling the backends as C++ (#814, #811)
general: improve pkg-config integration (#831)
general: expand automated tests and build coverage
general: various other fixes and improvements

Integration notes:

  • Custom HIDAPI_THREAD_MODEL_INCLUDE implementations must make hidapi_thread_create() return int: 0 on success, nonzero on failure (#843; related to #829).
  • Applications embedding backend sources must retain the supporting headers and their relative paths, including src/core/hidapi_input_ring.h for macOS/libusb and libusb/hidapi_libusb_report_descriptor.h for libusb.
  • Input-buffer configuration resizes queues on macOS, libusb and Windows. Linux/FreeBSD hidraw and NetBSD validate the value but retain kernel-managed buffering.

Released hidapi-win.zip includes pre-compiled:

  • hidapi.dll
  • hidapi.lib
  • hidapi.pdb

For x86 and x64 Windows platforms, with the corresponding header files.