Add option to change controller LED color #572

Merged
Otozinclus merged 33 commits from Change-Controller-LED-Color into master 2025-01-24 20:47:36 +00:00
Showing only changes of commit e861204078 - Show all commits

View File

@ -88,7 +88,7 @@ namespace Ryujinx.Input.SDL2
//if (SDL_GameControllerHasLED(_gamepadHandle)) //if (SDL_GameControllerHasLED(_gamepadHandle))
{ {
_setControllerLedColor("000000"); SetLedColor("000000");
} }
// Enable motion tracking // Enable motion tracking
@ -106,7 +106,7 @@ namespace Ryujinx.Input.SDL2
} }
} }
private void _setControllerLedColor(string hex) public void SetLedColor(string hex)
{ {
ulong LEDcolor = Convert.ToUInt64(hex, 16); ulong LEDcolor = Convert.ToUInt64(hex, 16);
byte red = (byte)((LEDcolor >> 16) % 256); byte red = (byte)((LEDcolor >> 16) % 256);