Skip to content

Enable extra player LED sets for PS5 Controllers#15744

Merged
slouken merged 1 commit into
libsdl-org:mainfrom
ThadHouse:extraps5leds
Jun 4, 2026
Merged

Enable extra player LED sets for PS5 Controllers#15744
slouken merged 1 commit into
libsdl-org:mainfrom
ThadHouse:extraps5leds

Conversation

@ThadHouse

@ThadHouse ThadHouse commented Jun 4, 2026

Copy link
Copy Markdown
Contributor
  • I confirm that I am the author of this code and release it to the SDL project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

Adds the 2 missing player LED patterns supported by the PS5 DualSense controller

Description

I'm running an app using SDL where I support 6 controllers. It'd be nice to give visual feedback to our users using the player LEDs which slot they're in. For Switch controllers, this works as the API switches to a semi binary representation for the 4 LEDs above player index 4. The PS5 controllers stopped at a max of 5 for player index, even though the PS5 controller has 7 supported light patterns. This PR adds the 2 extra light patterns (10001 and 01110) as players 6 and 7.

@slouken

slouken commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator
  • I confirm that I am the author of this code and release it to the SDL project under the Zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI").

Adds the 2 missing player LED patterns supported by the PS5 DualSense controller

Description

I'm running an app using SDL where I support 6 controllers. It'd be nice to give visual feedback to our users using the player LEDs which slot they're in. For Switch controllers, this works as the API switches to a semi binary representation for the 4 LEDs above player index 4. The PS5 controllers stopped at a max of 5 for player index, even though the PS5 controller has 7 supported light patterns. This PR adds the 2 extra light patterns (10001 and 01110) as players 6 and 7.

Does it make more sense to use this pattern?
5: 01110
6: 10001
7: 11111

@slouken slouken added this to the 3.4.12 milestone Jun 4, 2026
@slouken slouken self-assigned this Jun 4, 2026
@ThadHouse

Copy link
Copy Markdown
Contributor Author

I guess it depends on if we care about 5 still being 5 lights. That’s why I left it the way it was there. But can easily change it.

@slouken

slouken commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

I guess it depends on if we care about 5 still being 5 lights.

That makes sense. Okay, I'll merge this, thanks!

@slouken
slouken merged commit 0c8feec into libsdl-org:main Jun 4, 2026
46 checks passed
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