Step 1 fix controller LED turning on in Input menu, despite TUrnOffLed being true

This commit is contained in:
Otozinclus 2025-01-25 23:33:01 +01:00
parent 3b5f6170d1
commit 5ab5e042aa

View File

@ -251,7 +251,7 @@ namespace Ryujinx.Ava.UI.Views.Input
if (!args.NewColor.HasValue) return;
if (DataContext is not ControllerInputViewModel cVm) return;
if (!cVm.Config.EnableLedChanging) return;
cVm.ParentModel.SelectedGamepad.SetLed(args.NewColor.Value.ToUInt32());
}
@ -259,8 +259,14 @@ namespace Ryujinx.Ava.UI.Views.Input
{
if (DataContext is not ControllerInputViewModel cVm) return;
if (!cVm.Config.EnableLedChanging) return;
cVm.ParentModel.SelectedGamepad.SetLed(cVm.Config.LedColor.ToUInt32());
if (cVm.Config.TurnOffLed)
{
cVm.ParentModel.SelectedGamepad.ClearLed();
}
else
{
cVm.ParentModel.SelectedGamepad.SetLed(cVm.Config.LedColor.ToUInt32());
}
}
}
}