mirror of
https://github.com/luxfi/hid.git
synced 2026-07-26 23:57:43 +00:00
OS X enumerate fix: also look for IOKit in /System/Library/Frameworks
It appears the location of the library has moved recently.
This commit is contained in:
+5
-1
@@ -303,7 +303,11 @@ static io_service_t hidapi_IOHIDDeviceGetService(IOHIDDeviceRef device)
|
||||
* and the fallback method will be used.
|
||||
*/
|
||||
if (iokit_framework == NULL) {
|
||||
iokit_framework = dlopen("/System/Library/IOKit.framework/IOKit", RTLD_LAZY);
|
||||
iokit_framework = dlopen("/System/Library/Frameworks/IOKit.framework/IOKit", RTLD_LAZY);
|
||||
|
||||
if (iokit_framework == NULL) {
|
||||
iokit_framework = dlopen("/System/Library/IOKit.framework/IOKit", RTLD_LAZY);
|
||||
}
|
||||
|
||||
if (iokit_framework != NULL)
|
||||
dynamic_IOHIDDeviceGetService = dlsym(iokit_framework, "IOHIDDeviceGetService");
|
||||
|
||||
Reference in New Issue
Block a user