fixed some problems with rainbow led. also, rainbow won't be visible in settings (no easy way to constantly update it)
This commit is contained in:
@@ -387,18 +387,15 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||
{
|
||||
if (ConfigViewModel is not ControllerInputViewModel controllerInputViewModel) return;
|
||||
GamepadInputConfig inputConfig = controllerInputViewModel.Config;
|
||||
|
||||
|
||||
if (inputConfig is not { EnableLedChanging: true }) return;
|
||||
|
||||
|
||||
if (inputConfig.TurnOffLed)
|
||||
{
|
||||
SelectedGamepad.ClearLed();
|
||||
}
|
||||
else if(inputConfig.UseRainbowLed)
|
||||
{
|
||||
SelectedGamepad.SetLed((uint)Rainbow.Color.ToArgb());
|
||||
}
|
||||
else
|
||||
|
||||
if (!inputConfig.TurnOffLed && !inputConfig.UseRainbowLed)
|
||||
{
|
||||
SelectedGamepad.SetLed(inputConfig.LedColor.ToUInt32());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user