Repository navigation
Conversation
|
We could have an inline wrapper This is the best what I could think of right now |
An interesting note from the openbsd ports: rename hid_init() to hidapi_hid_init() to avoid collision with usbhid
|
To be honest, using libusb backend for HID device under NetBSD/OpenBSD are not that helpful as it is not easy to use the libusb to replace the HID driver. It will be good to use native HID api. |
|
Take note this is different from FreeBSD case. Back in 2012 I did tested quite a bit of FreeBSD USB stuff including HIDAPI as the USB stack allows generic driver along with HID driver for generic HID device. |
|
|
Maybe update |
NOTES, as described in #31: - it is still hard to use HIDAPI on OpenBSD since it is hard to use LIBUSB with HID devices; - there is a name colision with `hid_init` from `usbhid` OpenBSD library;
OpenBSD currently have a patchset on hidapi in their repos but it was pretty unusable for upstream.
This is proper support for OpenBSD and it compiles: https://builds.sr.ht/~z3ntu/job/70849 . Should be tested with an actual application as well.
An interesting note from the OpenBSD ports:
What they mean is that a library in OpenBSD https://man.openbsd.org/usbhid.3 already has the name
hid_init. No idea how that can be solved cleanly.