-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[rcore] Gamepad not working on macOS #3651
Comments
@NitroPlum Either way:
Edits: 1. added more information; 2. updated info, formatting. |
After GLFW, I also tried the SDL backend. Is there a way for me to fix the binding issue locally @ubkp ? |
Oh, another bit of info that may help. I did try in the browser examples on the Raylib site and both controllers work there. |
@NitroPlum Sure, create your own binds (you may want to take a look at SDL_GameControllerDB) and add it to your local
AFAIK, the web browser gamepad API is a completely different thing (ref1, ref2). Edit 1: AFAIK sometimes firmware updates end up changing the device GUID, which causes it to no longer match the DB. I could be wrong, but I think that happened to some Xbox controllers. Edit 2: Apparently you can even use Steam's Big Picture mode to generate binds these days (ref). |
I have similar problems. I am using the c# bindings of raylib on MacOSX 14.2.1 Sonoma and gamepad input is no longer working. Raylib detects the connected gamepads but does not trigger any button/ trigger/ axis functions. I have tested Xbox Elite Controller 2 & Xbox Series X Controller.
At same point it just stopped working for me.... The example I am using to test this all out works fine on windows (the gamepad is detected & the input is detected) I think the only thing I did was update the firmware on my elite controller but the other controller I did not update... I have tried to use custom bindings and bindings from SDL_GameControllerDB with the SetGamepadMappings function but it did not change anything. |
@SoloByte Thanks for reporting. Could you try with raylib latest master branch version? raylib 5.0 (November 2023) implemented a big redesign for desktop platforms and despite everything was carefully tested, some things could not work as expected. I don't have a macOS, neither those mentioned gamepads, I need help to fix this issue. |
@raysan5 All three are detected by my MacBook, all three work on windows, all three work with a gamepad tester. I have tested them with the raylib input gamepad example and they are detected and the input works (even when more than 1 is connected) but it seems that the triggers are not detected at all (Left/Right Trigger). The joystick axis work fine. I have tested it with my simple raylib cs gamepad tester project and the controllers are detected but no input is registered.
It would be helpful if someone could test this on a Mac with raylib, because I can only test it with raylib C# bindings. I will post my simple project here. It is possible that I am doing something wrong or missing a step.
|
@SoloByte I also cannot find any platform specific macos code in raylib. Maybe a newer version of GFLW will fix this. |
Please, before submitting a new issue verify and check:
Issue description
Gamepad input not working. I tried 2 different controllers.
Environment
MacOSX Ventura on an M2 Mac.
Issue Screenshot
Can't really show this.
Code Example
Provide minimal reproduction code to test the issue. Please, format the code properly and try to keep it as simple as possible, just focusing on the experienced issue.
The text was updated successfully, but these errors were encountered: