SDL_GameControllerDB & additional HIDAPI Joystick driver support#1576
Open
AL2009man wants to merge 7 commits intohedge-dev:mainfrom
Open
SDL_GameControllerDB & additional HIDAPI Joystick driver support#1576AL2009man wants to merge 7 commits intohedge-dev:mainfrom
AL2009man wants to merge 7 commits intohedge-dev:mainfrom
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`)
Contributor
|
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)
Contributor
Author
update: I added gamecontrollerdb.txt support, so I'll need to do some tests. https://drive.google.com/file/d/1t2wUC1YZcMXwUzDf2OLmHbCNO7nmrIt6/view?usp=sharing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.