improve support for gamepads - #7655
Merged
notimaginative merged 2 commits intoAug 4, 2026
Merged
Conversation
notimaginative
force-pushed
the
gamepad_support
branch
8 times, most recently
from
July 31, 2026 02:07
a3b2099 to
651314e
Compare
Use the SDL gamepad API to add full gamepad support. Adds rumble for supported gamepads and changes the FF in-game options to take immediate effect instead of requiring a restart. Additionally this makes changes to allow gamepad triggers to be used as both an axis and a button. This support is specific to gamepads since we can explicitly identify the trigger with the API and act on it accordingly. FSO control config doesn't currently support such an action directly however so we have to hack it in just a bit. Due to this the control binding will show the trigger axis name bound to a button control only while a gamepad is connected, otherwise it shows a button name associated with the trigger.
notimaginative
force-pushed
the
gamepad_support
branch
from
August 3, 2026 15:38
651314e to
eb42dde
Compare
Contributor
Author
|
The gamepad navigation support has become it's own beast and will be split off into it's own PR. What remains is the basic gamepad support which has already been in testing with all of the SDL3 test builds for the past 10-11 months. |
wookieejedi
reviewed
Aug 3, 2026
wookieejedi
reviewed
Aug 3, 2026
Member
|
Given the testing has been going well it overall looks good, but had two questions/comments, thanks! |
Contributor
Author
|
I'll wait 12 hours or so to merge in case those in different timezones or sleep schedules might want to comment as well. |
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.
Make use of the SDL gamepad API to improve support for gamepads. Also adds support for rumble and triggers as buttons.
NOTE: This is a semi-breaking change as control bindings for gamepads can change compared to older builds.