Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for kIOReturnError instead of Success #7

Merged
merged 4 commits into from
May 14, 2020

Conversation

verberktstan
Copy link
Contributor

@verberktstan verberktstan commented Apr 30, 2020

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!

@verberktstan verberktstan marked this pull request as draft April 30, 2020 17:45
@verberktstan verberktstan marked this pull request as ready for review April 30, 2020 18:19
@jackhumbert jackhumbert merged commit 38c9346 into jackhumbert:master May 14, 2020
@jackhumbert
Copy link
Owner

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants