fix formatting & styling

This commit is contained in:
Evan Husted 2025-01-22 16:04:57 -06:00 committed by GitHub
parent 8904397685
commit e861204078
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,7 @@ namespace Ryujinx.Input.SDL2
//if (SDL_GameControllerHasLED(_gamepadHandle))
{
_setControllerLedColor("000000");
SetLedColor("000000");
}
// 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);
byte red = (byte)((LEDcolor >> 16) % 256);