Closed aaazalea closed 5 years ago
+1 on this pr
Closing this since I haven't been working at the company whose project needed it in a while, and I don't think said project even exists anymore, and it doesn't look like it's being merged anytime soon.
HIDAPI has 4 backends, including a native linux HID driver (
hidraw
) backend which can be used on linux instead oflibusb
. There are various advantages and disadvantages of using this backend instead, one of which is that it supports getting theUsage
andUsagePage
for HID devices, which some uses (u2f, for example) use to identify devices.This PR adds a build tag,
// +build hidraw
that causes the package to build withhidraw
as a backend instead oflibusb
on linux.Miscellaneously, the test for gowchar was failing so I modified it to use the right name for a constant.