diff --git a/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs index 6e886d0b8..b9f4c8602 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs @@ -24,6 +24,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input { _isLeft = value; OnPropertyChanged(); + OnPropertyChanged(nameof(HasSides)); } } @@ -35,9 +36,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 e7c1d54ca..6cf873071 100644 --- a/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml +++ b/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml @@ -316,6 +316,13 @@ Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> + + - - + + + MinHeight="90" + IsVisible="{Binding HasSides}"> - - -