From d1b29453ddc862786e21e39d444b24a27dd15c4e Mon Sep 17 00:00:00 2001 From: Matthew Sainsbury Date: Fri, 21 Feb 2020 18:25:40 -0800 Subject: [PATCH] Mac: hid_open_path in non exclusive mode --- mac/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mac/hid.c b/mac/hid.c index e0756a15..4083b468 100644 --- a/mac/hid.c +++ b/mac/hid.c @@ -704,7 +704,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path) } /* Open the IOHIDDevice */ - IOReturn ret = IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeSeizeDevice); + IOReturn ret = IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeNone); if (ret == kIOReturnSuccess) { char str[32]; @@ -991,7 +991,7 @@ void HID_API_EXPORT hid_close(hid_device *dev) been unplugged. If it's been unplugged, then calling IOHIDDeviceClose() will crash. */ if (!dev->disconnected) { - IOHIDDeviceClose(dev->device_handle, kIOHIDOptionsTypeSeizeDevice); + IOHIDDeviceClose(dev->device_handle, kIOHIDOptionsTypeNone); } /* Clear out the queue of received reports. */