Add support for querying joypad type, model and layout scheme#117526
Draft
Nintorch wants to merge 1 commit intogodotengine:masterfrom
Draft
Add support for querying joypad type, model and layout scheme#117526Nintorch wants to merge 1 commit intogodotengine:masterfrom
Nintorch wants to merge 1 commit intogodotengine:masterfrom
Conversation
7 tasks
Nintorch
commented
Mar 17, 2026
7f9098f to
6b8f713
Compare
Member
Author
|
Should Steam controllers other than Steam Deck also return |
This PR adds support for querying/getting the joypad type (gamepad, racing wheel, arcade stick, etc.) and model (Xbox 360, Xbox One, PS3, DualShock 4, DualSense, etc.). Getting the joypad type and model is useful, for example, to make the game use correct button names and icons for specific controllers.
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.
Input.get_joy_type()to get controller type godot-proposals#8519This PR adds support for querying/getting the joypad type (gamepad, racing wheel, arcade stick, etc.) and model (Xbox 360, Xbox One, PS3, DualShock 4, DualSense, etc.). Getting the joypad type and model is useful, for example, to make the game use correct button names and icons for specific controllers.
It's not currently possible to check if a joypad is a GameCube controller because our version of SDL doesn't support it yet.
TODO:
JOY_MODEL_STEAM_DECKdocumentationJOY_MODEL_XBOX_360for other XInput controllersJOY_MODEL_GAMECUBE, see also Enable GameCube controller adapter support on Linux #118147set_joy_device_type()toJoypadFeatures