misc: chore: Pass rainbow color by reference in the event instead of passing around a packed int.

This commit is contained in:
Evan Husted 2025-01-29 20:51:55 -06:00
parent 023bd5f00f
commit 71d8cfd232
5 changed files with 67 additions and 10 deletions

View file

@ -111,7 +111,7 @@ namespace Ryujinx.Input.SDL2
byte blue = packedRgb > 0 ? (byte)(packedRgb % 256) : (byte)0;
if (SDL_GameControllerSetLED(_gamepadHandle, red, green, blue) != 0)
Logger.Error?.Print(LogClass.Hid, "LED is not supported on this game controller.");
Logger.Error?.Print(LogClass.Hid, "LED setting failed; probably in the middle of disconnecting.");
}
private GamepadFeaturesFlag GetFeaturesFlag()