Feature: Auto-Assign Controllers #706

Open
uncavo-hdmi wants to merge 31 commits from uncavo-hdmi/auto-assign-controller into master
2 changed files with 5 additions and 7 deletions
Showing only changes of commit cc905280cd - Show all commits

View File

@ -140,6 +140,7 @@ namespace Ryujinx.Ava.Input
if (orderedConfigs[index] is StandardControllerInputConfig standardConfig)
{
if(standardConfig.Led.UseRainbow) continue;
Logger.Warning?.Print(LogClass.Application, $"Setting color for Player{index + 1}");
standardConfig.Led = new LedConfigController
{

View File

@ -394,11 +394,8 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
{
SelectedGamepad.ClearLed();
}
else if(inputConfig.UseRainbowLed)
{
SelectedGamepad.SetLed((uint)Rainbow.Color.ToArgb());
}
else
if (!inputConfig.TurnOffLed && !inputConfig.UseRainbowLed)
{
SelectedGamepad.SetLed(inputConfig.LedColor.ToUInt32());
}