README: document how to choose between libusb & hidraw backends

This commit is contained in:
Be
2021-05-17 18:22:49 -05:00
committed by Ihor Dutchak
parent c7a2339b05
commit c13fb1a880
+4 -1
View File
@@ -45,7 +45,10 @@ HIDAPI has five back-ends:
* Mac (using IOHidManager)
On Linux, either the hidraw or the libusb back-end can be used. There are
tradeoffs, and the functionality supported is slightly different.
tradeoffs, and the functionality supported is slightly different. Both are
built by default. It is up to the application linking to hidapi to choose
the backend at link time by linking to either `libhidapi-libusb` or
`libhidapi-hidraw`.
__Linux/hidraw__ (`linux/hid.c`):