./comms/libhidapi, Library for comunicating with bluetooth and usb hid devices

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 0.16.0, Package name: libhidapi-0.16.0, Maintainer: nathanialsloss

HIDAPI is a multi-platform library which allows an application to interface
with USB and Bluetooth HID-Class devices on Windows, Linux, and Mac OS X.
On Windows, a DLL is built. On other platforms (and optionally on Windows),
the single source file can simply be dropped into a target application.

HIDAPI has four back-ends:
* Windows (using hid.dll)
* Linux/hidraw (using the Kernel's hidraw driver)
* Linux/libusb (using libusb-1.0)
* NetBSD (using uhid(4) and drvctl(4))
* Mac (using IOHidManager)

This package includes the libusb, Linux hidraw, and NetBSD backend.


Required to run:
[devel/libusb1]

Master sites:

Filesize: 442.909 KB

Version history: (Expand)


CVS history: (Expand)


   2026-11-16 17:48:44 by Adam Ciarcinski | Files touched by this commit (7) | Package updated
Log message:
libhidapi: updated to 0.16.0

0.16.0

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

FreeBSD: add a native hidraw backend

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

hidraw: add support for BUS_VIRTUAL
hidraw: populate release_number from HID_FIRMWARE_VERSION when supplied by the \ 
Linux kernel

winapi: fix duplicate-symbol warnings in static CMake builds
winapi: improve C99 and WIN32_LEAN_AND_MEAN compatibility
winapi: add Visual Studio 2026 support

macOS: fix compilation with newer Apple Clang

NetBSD: improve root-hub discovery and iconv compatibility

general: add HIDAPI_BUILD_AS_CXX for compiling the backends as C++
general: improve pkg-config integration
general: expand automated tests and build coverage
general: various other fixes and improvements
   2026-11-06 15:12:54 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
libhidapi: fix buildlink3.mk and cleanup
   2026-03-17 20:13:40 by Izumi Tsutsui | Files touched by this commit (3)
Log message:
libhidapi: reduce diffs from ustream implementation.

Tested with ch32fun and UIAPduino on NetBSD/i386 10.1 with
both ohci and xhci.
Also sync DESCR with the latest version.
   2026-03-13 11:37:25 by Izumi Tsutsui | Files touched by this commit (5) | Package updated
Log message:
libhidapi: update to 0.15.0

pkgsrc changes:

 - add PLIST_VARS for libhidapi-netbsd (NetBSD HID native backend)
 - pull iconv(3) const check from libusb version
 - check both addr 0 and 1 on enumerating devices (see NetBSD PR/60073)

Upstream changes:
 https://github.com/libusb/hidapi/releases/tag/hidapi-0.15.0

general: Add hid_send_output_report() (#677)
general: Add hid_read_error() (#721)

winapi: add hid_winapi_set_write_timeout (#700)
winapi: improvements for \ 
hid_get_report_descriptor/hid_winapi_descriptor_reconstruct_pp_data (#707)

hidraw: report only Top-Level Usage_page/Usage pairs as 'unique' \ 
devices (#601)

macOS: add option to mimic 1.0.0 compatibility version (#709)

NetBSD: UHID native backend implementation (#612)

libusb: add abstraction for thread model, allow building using non-POSIX runtime
libusb: enable support for Xbox 360 and Xbox One controllers (#572)

general: various other fixes and improvements
   2025-08-20 13:35:15 by Thomas Klausner | Files touched by this commit (242)
Log message:
*: fix build with cmake 4
   2023-07-07 10:07:12 by =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= | Files touched by this commit (1)
Log message:
libhidapi: Fix PLIST for Darwin
   2023-05-23 19:54:04 by nikita | Files touched by this commit (4) | Package updated
Log message:
libhidapi: update to version 0.14.0

Changelog (taken from https://github.com/libusb/hidapi/releases/tag/hidapi-0.14.0):

hidapi-0.14.0
d3013f0

general: add hid_get_report_descriptor API function (#451)
macOS: fix retrieving USB Interface number on macOS 13.3 (#534)
macOS: Properly handle the close of run loop on macOS (#522)
libusb: fix crash in hid_enumerate() caused by a stale device handle (#526)

windows: alternative way to get USB Serial Number if not provided by \ 
HidD_GetSerialNumberString (#464)
windows: don't mark with dllexport in static build (#507/#515)
windows: Get Bluetooth device Model Number String instead of Device Name into \ 
product string (#500)

general: fixes (mostly error handling) of issues found by Coverity Scan \ 
(#552/#554/#555/#559/#560/#561)
general: variouse fixes and improvements

Released hidapi-win.zip includes pre-compiled:

    hidapi.dll
    hidapi.lib

For x86 and x64 Windows platforms.
And header file(s) for it.
   2023-05-18 11:04:59 by nikita | Files touched by this commit (4)
Log message:
libhidapi: fix typo, move darwin files to PLIST.Darwin