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
Macos Switch Pro Controller Joystick Input Super Buggy #1627
Comments
That should definitely not happen. Thank you for reporting this. Unfortunately I don't have access to that model controller. Does the controller work normally with non-GLFW software on that Mac? |
@elmindreda - I was able to get good readings from the controller using SDL2's Joystick / Gamepad API as well as from the web's gamepad api. Happy to help debug however I can! I'd much prefer to stick with GLFW over SDL |
Just to add to this, I'm getting the same results on a pro controller (wired) with the same ID. When connected via bluetooth, the same controller appears but no buttons or inputs register at all. |
Getting the same issue when using a wired pro controller on Windows 10. |
I run into the same issue |
Interestingly, there's an extra entry for Macos and Linux platforms in the SDL_GameControllerDB library (notice the difference in GUIDs). I wonder if that's the issue |
@nickav I don't think it's as simple as adding a line to the DB because I tried re-running the CMake generator script for the mappings header and it didn't help. I noticed that the Switch controller itself blinks in the same way that it does when the an actual Switch console is "finding" the controller. I feel like the controller expects an initialization phase that is getting skipped. |
Gah, it looks like SDL includes an entire mini-driver just for the Switch: https://github.com/libsdl-org/SDL/blob/main/src/joystick/hidapi/SDL_hidapi_switch.c |
Same issue here, on Bug Sur 11.6. I feel this used to work? |
Same issue here |
on macOS Big Sur 11.6.2, in Bluetooth ONLY with the Switch Pro Controller : At first it does not work, GLFW's When I start Steam on macOS, the blue ring disappear. and then the controller works perfectly with GLFW's ...until the controller goes to sleep (of course) if I don't use it for some time. Then if I press a button, it connects again in Bluetooth, and the blue led ring appears, and it does not work.. So, Steam seems to correctly initialize a thing, and Steam seems to not be needed once it has been done. So maybe a full driver is maybe not needed, GLFW seems to already have what's necessary, |
Chromium describes how Switch Pro controller is non-standard https://source.chromium.org/chromium/chromium/src/+/main:device/gamepad/nintendo_controller.h |
I get the same random inputs when connecting a pair of joycons over usb with the Nintendo Joy-Con Charging Grip. On Chrome with gamepad-tester.com the joycons work and are detected as "Joy-Con L+R (STANDARD GAMEPAD Vendor: 057e Product: 200e)" |
Summary
The joystick api is not working for the Nintendo Switch Pro Controller on macos.
Details
Macos Mojave 10.14.3 (18D42)
GLFW 3.3.1
Steps to Repro
tests/joystick.app
Note that unplugging and re-plugging in the controller makes no difference
The text was updated successfully, but these errors were encountered: