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
OSX joystick patch #614
Comments
How does this relate to #579, does it help? |
It doesn't relate to that issue. This patch is strictly to make enumerating connected joysticks more robust. The current implementation assumes each HID device is one controller/joystick. The patch fixes this by interpreting each collection reported by the device as a separate controller/joystick (this is part of the USB HID spec). |
I've applied your patch (from a.cc) to a branch in my fork of Allegro, and I'll put in a pull request, unless you want to do it. There are a couple of things which I was going to fix:
|
Yeah, I missed that
I started working on another patch to get the name and button/stick/axis names from the HID data. I already have the device name working, but I want to see if I can retrieve the other information as well. It should be possible and it would make joystick support on par with the other supported platforms. |
I put up a new version of the patch in the thread linked above. I went ahead and fixed the two issues you mentioned. I also added support for getting the device name instead of just calling it "Joystick" and I made more appropriate default names for the various types of elements. |
OK I have put this in as a pull request #625. Thanks! |
Looks like this was closed, reopen if I'm mistaken. |
See https://www.allegro.cc/forums/thread/616193
The text was updated successfully, but these errors were encountered: