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:
parent
38ecb3d5bc
commit
cc905280cd
@ -140,6 +140,7 @@ namespace Ryujinx.Ava.Input
|
|||||||
|
|
||||||
if (orderedConfigs[index] is StandardControllerInputConfig standardConfig)
|
if (orderedConfigs[index] is StandardControllerInputConfig standardConfig)
|
||||||
{
|
{
|
||||||
|
if(standardConfig.Led.UseRainbow) continue;
|
||||||
Logger.Warning?.Print(LogClass.Application, $"Setting color for Player{index + 1}");
|
Logger.Warning?.Print(LogClass.Application, $"Setting color for Player{index + 1}");
|
||||||
standardConfig.Led = new LedConfigController
|
standardConfig.Led = new LedConfigController
|
||||||
{
|
{
|
||||||
|
@ -394,11 +394,8 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|||||||
{
|
{
|
||||||
SelectedGamepad.ClearLed();
|
SelectedGamepad.ClearLed();
|
||||||
}
|
}
|
||||||
else if(inputConfig.UseRainbowLed)
|
|
||||||
{
|
if (!inputConfig.TurnOffLed && !inputConfig.UseRainbowLed)
|
||||||
SelectedGamepad.SetLed((uint)Rainbow.Color.ToArgb());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
SelectedGamepad.SetLed(inputConfig.LedColor.ToUInt32());
|
SelectedGamepad.SetLed(inputConfig.LedColor.ToUInt32());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user