SDL icon indicating copy to clipboard operation
SDL copied to clipboard

[Feature Request] Implement `SDL_SetGamepadLED()` on Android.

Open MAJigsaw77 opened this issue 1 month ago • 2 comments

Currently, ANDROID_JoystickSetLED is just a stub returning SDL_Unsupported(), so any game attempting to control controller lighting on Android will fail. On devices running Android 12+ (API 31), this is limiting because the platform exposes LightsManager, which allows control over device lights.

Implementing LED support via LightsManager inside ANDROID_JoystickSetLED would bring Android in line with the other backends. The function could enumerate the controller lights, apply a LightState, and return success where supported. With this, existing LED APIs would start working on modern Android hardware with no changes to the public API.

MAJigsaw77 avatar Nov 20 '25 21:11 MAJigsaw77

This seems like a good idea. Would you like to create a PR?

slouken avatar Nov 20 '25 21:11 slouken

This seems like a good idea. Would you like to create a PR?

Sure, ill do it.

MAJigsaw77 avatar Nov 22 '25 06:11 MAJigsaw77