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

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 0.15.0, Package name: libhidapi-0.15.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: 355.311 KB

Version history: (Expand)


CVS history: (Expand)


   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
   2023-05-17 16:58:30 by nikita | Files touched by this commit (1)
Log message:
libhidapi: increase bl3 abi+api version
   2023-05-17 15:26:35 by nikita | Files touched by this commit (2)
Log message:
libhidapi: hopefully fix build on Linux and Darwin.