hid icon indicating copy to clipboard operation
hid copied to clipboard

Why not use hidraw instead of libusb?

Open karelbilek opened this issue 7 years ago • 3 comments

Just asking - why does this use libusb instead of hidraw backend? Hidraw seems like less of a hassle (no need to package all libusb), but I have not tried it.

karelbilek avatar Aug 23 '18 17:08 karelbilek

hidraw is not cross-platform and does not work on non-Linux systems, while libusb does.

neverpanic avatar Dec 24 '18 23:12 neverpanic

Looks like on Linux, though, hidraw will give you device usage and usagePage like the MacOS version does

nijave avatar Feb 11 '20 00:02 nijave

You're free to use hidraw if you prefer.

But the feature of this library is to wrap hidapi and libusb to work on Linux/Mac/Windows and it does it well.

dolmen avatar Jan 13 '22 20:01 dolmen