Skip to content

Conversation

@MAJigsaw77
Copy link
Contributor

This PR implements the ANDROID_JoystickSetLED by using the LightsManager API introduced in Android 12 (API 31).

  • Detects RGB-controllable lights during joystick enumeration.
  • Opens and maintains a LightsSession for each RGB-capable controller.
  • Caches RGB light references to avoid repeated filtering.

I tested this implementation on a regular PS4 controller.

Closes #14497

@slouken slouken added this to the 3.4.0 milestone Dec 29, 2025
@slouken slouken merged commit cb04dcd into libsdl-org:main Dec 29, 2025
43 checks passed
@slouken
Copy link
Collaborator

slouken commented Dec 29, 2025

Merged, thanks!

@MAJigsaw77 MAJigsaw77 deleted the feature/android-joystick-rgb-led branch December 29, 2025 18:38
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.

[Feature Request] Implement SDL_SetGamepadLED() on Android.

2 participants