-
Notifications
You must be signed in to change notification settings - Fork 199
SDL_GameControllerDB & additional HIDAPI Joystick driver support #1576
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
base: main
Are you sure you want to change the base?
Conversation
added HIDAPI Joystick driver for major Controller Types: * Nintendo Switch controllers (`SDL_HINT_JOYSTICK_HIDAPI_SWITCH`, `SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC`, `SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS`, `SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS`) * Steam Controller (`SDL_HINT_JOYSTICK_HIDAPI_STEAM`) * Steam Deck built-in (`SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK`)
You've mentioned that this might resolve Since we still have issue with external ci jobs as per Could you make a build so that the people finding issues with third party Switch controllers could test it? |
added `SDL_GameControllerAddMappingsFromFile` to allow support for SDL_GameControllerDB as a option, for those who prefer Community-driven Gamepad database (tends to be far more up-to-date than main SDL)
update: I added gamecontrollerdb.txt support, so I'll need to do some tests. https://drive.google.com/file/d/1t2wUC1YZcMXwUzDf2OLmHbCNO7nmrIt6/view?usp=sharing |
note: this PR requires #1449.
I originally planned to reserve it for the Input Remapper update, but ultimately, I decided to prepare for Nintendo Switch controller support in advance. This might assist on attempting to solve #1534
So, this PR adds missing major Controller Types to the list, such as:
In addition: SDL_GameControllerDB support is added, just get gamecontrollerdb.txt and drag-and-drop it to the game's executable file.