Step 1 fix controller LED turning on in Input menu, despite TUrnOffLed being true
This commit is contained in:
parent
3b5f6170d1
commit
5ab5e042aa
@ -251,7 +251,7 @@ namespace Ryujinx.Ava.UI.Views.Input
|
|||||||
if (!args.NewColor.HasValue) return;
|
if (!args.NewColor.HasValue) return;
|
||||||
if (DataContext is not ControllerInputViewModel cVm) return;
|
if (DataContext is not ControllerInputViewModel cVm) return;
|
||||||
if (!cVm.Config.EnableLedChanging) return;
|
if (!cVm.Config.EnableLedChanging) return;
|
||||||
|
|
||||||
cVm.ParentModel.SelectedGamepad.SetLed(args.NewColor.Value.ToUInt32());
|
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 (DataContext is not ControllerInputViewModel cVm) return;
|
||||||
if (!cVm.Config.EnableLedChanging) return;
|
if (!cVm.Config.EnableLedChanging) return;
|
||||||
|
if (cVm.Config.TurnOffLed)
|
||||||
cVm.ParentModel.SelectedGamepad.SetLed(cVm.Config.LedColor.ToUInt32());
|
{
|
||||||
|
cVm.ParentModel.SelectedGamepad.ClearLed();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cVm.ParentModel.SelectedGamepad.SetLed(cVm.Config.LedColor.ToUInt32());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user