mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-15 12:36:28 +02:00
misc: chore: Pass rainbow color by reference in the event instead of passing around a packed int.
This commit is contained in:
parent
023bd5f00f
commit
71d8cfd232
5 changed files with 67 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue