This commit is contained in:
Isaac Marovitz 2023-05-19 17:45:35 -04:00 committed by Isaac Marovitz
parent 9bbee3041e
commit 71fa81017b
2 changed files with 62 additions and 54 deletions

View file

@ -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
{

View file

@ -349,6 +349,9 @@
Width="25"
Text="{Binding Config.TriggerThreshold, StringFormat=\{0:0.00\}}" />
</StackPanel>
<StackPanel
Orientation="Vertical"
IsVisible="{Binding HasSides}">
<StackPanel
Margin="0,4,0,0"
HorizontalAlignment="Center"
@ -422,6 +425,7 @@
</ToggleButton>
</StackPanel>
</StackPanel>
</StackPanel>
</Border>
<!-- Motion + Rumble -->
<StackPanel