Update TurboWhileHeld hotkey to refactored Input
This commit is contained in:
parent
c5eecc320c
commit
784f75e665
2 changed files with 16 additions and 3 deletions
|
@ -115,6 +115,17 @@ namespace Ryujinx.Ava.UI.Models.Input
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool _turboWhileHeld;
|
||||||
|
public bool TurboWhileHeld
|
||||||
|
{
|
||||||
|
get => _turboWhileHeld;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_turboWhileHeld = value;
|
||||||
|
OnPropertyChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public HotkeyConfig(KeyboardHotkeys config)
|
public HotkeyConfig(KeyboardHotkeys config)
|
||||||
{
|
{
|
||||||
if (config != null)
|
if (config != null)
|
||||||
|
@ -129,6 +140,7 @@ namespace Ryujinx.Ava.UI.Models.Input
|
||||||
VolumeUp = config.VolumeUp;
|
VolumeUp = config.VolumeUp;
|
||||||
VolumeDown = config.VolumeDown;
|
VolumeDown = config.VolumeDown;
|
||||||
ToggleTurbo = config.ToggleTurbo;
|
ToggleTurbo = config.ToggleTurbo;
|
||||||
|
TurboWhileHeld = config.TurboWhileHeld;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,6 +158,7 @@ namespace Ryujinx.Ava.UI.Models.Input
|
||||||
VolumeUp = VolumeUp,
|
VolumeUp = VolumeUp,
|
||||||
VolumeDown = VolumeDown,
|
VolumeDown = VolumeDown,
|
||||||
ToggleTurbo = ToggleTurbo,
|
ToggleTurbo = ToggleTurbo,
|
||||||
|
TurboWhileHeld = TurboWhileHeld,
|
||||||
};
|
};
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
<TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysToggleTurboHotkey}" Width="230" />
|
<TextBlock VerticalAlignment="Center" Text="{locale:Locale SettingsTabHotkeysToggleTurboHotkey}" Width="230" />
|
||||||
<ToggleButton Name="ToggleTurbo">
|
<ToggleButton Name="ToggleTurbo">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
Text="{Binding KeyboardHotkeys.ToggleTurbo, Mode=TwoWay, Converter={StaticResource Key}}"
|
Text="{Binding KeyboardHotkey.ToggleTurbo, Mode=TwoWay, Converter={StaticResource Key}}"
|
||||||
TextAlignment="Center" />
|
TextAlignment="Center" />
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
<TextBlock Text="{locale:Locale SettingsTabHotkeysToggleTurboToggle}"
|
<TextBlock Text="{locale:Locale SettingsTabHotkeysToggleTurboToggle}"
|
||||||
ToolTip.Tip="{locale:Locale SettingsTabHotkeysToggleTurboToggleTooltip}"
|
ToolTip.Tip="{locale:Locale SettingsTabHotkeysToggleTurboToggleTooltip}"
|
||||||
Width="230" />
|
Width="230" />
|
||||||
<CheckBox IsChecked="{Binding KeyboardHotkeys.TurboWhileHeld}" />
|
<CheckBox IsChecked="{Binding KeyboardHotkey.TurboWhileHeld}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
Loading…
Reference in a new issue