Skip to content

Add support for joystick LED for Switch controllers#14901

Merged
slouken merged 1 commit intolibsdl-org:mainfrom
Nintorch:switch-light
Jan 27, 2026
Merged

Add support for joystick LED for Switch controllers#14901
slouken merged 1 commit intolibsdl-org:mainfrom
Nintorch:switch-light

Conversation

@Nintorch
Copy link
Contributor

@Nintorch Nintorch commented Jan 24, 2026

The idea was originally proposed and implemented by @ThiLelito in godotengine/godot#115114 , so we decided to make a PR for SDL too.
Since Switch 1 (and not Switch 2) Pro Controller and right JoyCon controllers have a home LED light, we think it makes sense for it to be also exposed via SDL_SetJoystickLED() and not only through the SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED hint in case a developer might want to change the brightness of the home LED on only one connected controller and not the other ones.

Co-Authored-By: Thiago Lelles Fernandes <125714191+thilelito@users.noreply.github.com>
@slouken slouken merged commit 90dabda into libsdl-org:main Jan 27, 2026
45 checks passed
@slouken slouken added this to the 3.4.2 milestone Jan 27, 2026
@slouken
Copy link
Collaborator

slouken commented Jan 27, 2026

Merged, thanks!

@Nintorch Nintorch deleted the switch-light branch January 27, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments