jackhumbert / FreeTheWheel

Logitech driving wheel enabler based on Feral Interactive's FreeTheWheel
GNU General Public License v2.0
41 stars 18 forks source link

Check for kIOReturnError instead of Success #7

Closed verberktstan closed 4 years ago

verberktstan commented 4 years ago

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.

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!

jackhumbert commented 4 years ago

Cool, thanks!