From c13fb1a880bb3e4c4f2e7f16704233c33425d79e Mon Sep 17 00:00:00 2001 From: Be Date: Mon, 17 May 2021 18:22:49 -0500 Subject: [PATCH] README: document how to choose between libusb & hidraw backends --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 43575a1..67fa8e7 100644 --- a/README.md +++ b/README.md @@ -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`):