-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
internal/gamepad: a wireless Xbox controller's button assignment seems odd on macOS desktop #266
Comments
PS3 controller worked as intended. |
https://github.com/libsdl-org/SDL/blob/6dfd7a17e1d9ea94015bb0fda4c570f8b20781bd/src/joystick/darwin/SDL_iokitjoystick.c#L496-L501 HID API is needed. This is basically the same in Chromium implementation. GameController.framework would work but I'm not sure this works with SDL's gamepad database. |
Note that GameController.framework didn't work for an Xbox controller (USB) on macOS. That's odd... EDIT: Wireless worked, but wired didn't! |
Even in the current implementation, a wireless Xbox controller worked. The problem is that the button assignment is wrong. I'll take a look.. |
…rectly on macOS The button and hat values must be adjusted by their minimum values. See also GLFW's implementation. Closes #266
There is no problem on browsers. Is this GLFW problem?
EDIT: The original issue was "Xbox controller is not available on Mac desktop". A wired controller was not available, but a wireless was.
The text was updated successfully, but these errors were encountered: