|
@@ -1,12 +1,10 @@
|
|
|
using Avalonia.Svg.Skia;
|
|
using Avalonia.Svg.Skia;
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
-using CommunityToolkit.Mvvm.Input;
|
|
|
|
|
-using FluentAvalonia.UI.Controls;
|
|
|
|
|
-using Ryujinx.Ava.UI.Helpers;
|
|
|
|
|
using Ryujinx.Ava.UI.Models.Input;
|
|
using Ryujinx.Ava.UI.Models.Input;
|
|
|
using Ryujinx.Ava.UI.Views.Input;
|
|
using Ryujinx.Ava.UI.Views.Input;
|
|
|
using Ryujinx.Common.Utilities;
|
|
using Ryujinx.Common.Utilities;
|
|
|
using Ryujinx.UI.Views.Input;
|
|
using Ryujinx.UI.Views.Input;
|
|
|
|
|
+using System.Drawing;
|
|
|
|
|
|
|
|
namespace Ryujinx.Ava.UI.ViewModels.Input
|
|
namespace Ryujinx.Ava.UI.ViewModels.Input
|
|
|
{
|
|
{
|
|
@@ -54,7 +52,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
|
|
if (args.PropertyName is nameof(Config.UseRainbowLed))
|
|
if (args.PropertyName is nameof(Config.UseRainbowLed))
|
|
|
{
|
|
{
|
|
|
if (Config is { UseRainbowLed: true, TurnOffLed: false, EnableLedChanging: true })
|
|
if (Config is { UseRainbowLed: true, TurnOffLed: false, EnableLedChanging: true })
|
|
|
- Rainbow.Updated += color => ParentModel.SelectedGamepad.SetLed((uint)color);
|
|
|
|
|
|
|
+ Rainbow.Updated += (ref Color color) => ParentModel.SelectedGamepad.SetLed((uint)color.ToArgb());
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
Rainbow.Reset();
|
|
Rainbow.Reset();
|