Apparently on Catalina, IOHIDDeviceOpen() doesn't return kIOReturnSuccess but something else. While trying to figure out what error was returned, i noticed that ignoring the IOReturn actually fixed the Error from Issue #6
In my case it returns kIOReturnExclusiveAccess, but it works anyway. So i chose to ignore this specific error.
If anyone has time to add more cases to the error check, please feel free.
If anyone has an idea why kIOReturnSuccess is not returned on Catalina, maybe we can improve this program!
Apparently on Catalina,
IOHIDDeviceOpen()
doesn't returnkIOReturnSuccess
but something else. While trying to figure out what error was returned, i noticed that ignoring theIOReturn
actually fixed the Error from Issue #6In my case it returns
kIOReturnExclusiveAccess
, but it works anyway. So i chose to ignore this specific error.For reference on IOReturns check IOReturn.h
If anyone has time to add more cases to the error check, please feel free. If anyone has an idea why
kIOReturnSuccess
is not returned on Catalina, maybe we can improve this program!