From bbbfe38e0bfc5280e349049c126dcf2792c06b52 Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Wed, 8 Feb 2023 08:26:36 -0800 Subject: [PATCH] Very minor thing to help compiling with older hidapi. --- usbcontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usbcontroller.cpp b/usbcontroller.cpp index de8600e..d4b3466 100644 --- a/usbcontroller.cpp +++ b/usbcontroller.cpp @@ -65,8 +65,10 @@ void usbController::init(int sens) } else { +#ifdef HID_API_VERSION_MAJOR #if defined(__APPLE__) && HID_API_VERSION >= HID_API_MAKE_VERSION(0, 12, 0) hid_darwin_set_open_exclusive(0); +#endif #endif qInfo(logUsbControl()) << "Found available HID devices (not all will be suitable for use):";