-
Notifications
You must be signed in to change notification settings - Fork 128
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
ares is mixing up controllers in MacOS #1708
Comments
Issue is we're not calling As a result, we distinguish controllers only by vendor and product ID, which will be the same if you use identical controllers. The question is: where do we get a value that can uniquely identify a controller on macOS? On Windows we use a hash of the USB device path, not sure if there's something similar to use on macOS. |
Irrespective of the above issue, I would definitely not recommend using the IOKit input driver; I have considered trying to deprecate/remove it. For controllers it's particularly unsuitable; there is no normalization of stick input or any standard features of a "modern" controller driver. It's more an API designed to write controller drivers with rather than a controller driver itself. Can you confirm that you are in fact using the IOKit input driver, and if so, check if the same thing occurs using SDL for input? |
To clarify, I am using the SDL driver, not IOKit. Actually, there is no option in the driver settings for IOKit, the only options are
Given the above, perhaps this is not the cause? |
Quartz is what uses the IOKit implementation for joypads. So while my analysis doesn't apply when using the SDL, I wouldn't be surprised if the SDL driver has pretty much the same underlying issue and we should pass something better for the |
In ares 141 on MacOS 14.6,
When I have two Xbox wireless controllers connected to the Mac (and working fine in other applications), and I map the first controller to port 1 and the other to port 2, ares seems to confuse these controllers with each other, e.g:
The text was updated successfully, but these errors were encountered: