From 71fa81017b0ffa98c79168e73cf4278c9e5c2e9c Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Fri, 19 May 2023 17:45:35 -0400 Subject: [PATCH] Fixes --- .../Input/ControllerInputViewModel.cs | 4 + .../UI/Views/Input/ControllerInputView.axaml | 112 +++++++++--------- 2 files changed, 62 insertions(+), 54 deletions(-) diff --git a/src/Ryujinx.Ava/UI/ViewModels/Input/ControllerInputViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/Input/ControllerInputViewModel.cs index 34d7ac2cf..52e2d2c53 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/Input/ControllerInputViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/Input/ControllerInputViewModel.cs @@ -25,6 +25,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input { _isLeft = value; OnPropertyChanged(); + OnPropertyChanged(nameof(HasSides)); } } @@ -36,9 +37,12 @@ namespace Ryujinx.Ava.UI.ViewModels.Input { _isRight = value; OnPropertyChanged(); + OnPropertyChanged(nameof(HasSides)); } } + public bool HasSides => IsLeft ^ IsRight; + private SvgImage _image; public SvgImage Image { diff --git a/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml b/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml index 6cf873071..74827174a 100644 --- a/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml +++ b/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml @@ -350,76 +350,80 @@ Text="{Binding Config.TriggerThreshold, StringFormat=\{0:0.00\}}" /> - + - + IsVisible="{Binding IsLeft}" + Orientation="Horizontal"> - - - - + + + + - + IsVisible="{Binding IsLeft}" + Orientation="Horizontal"> - - - - + + + + - + IsVisible="{Binding IsRight}" + Orientation="Horizontal"> - - - - + + + + - + IsVisible="{Binding IsRight}" + Orientation="Horizontal"> - + + + +