mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-14 21:17:43 -07:00
Update TurboWhileHeld hotkey to refactored Input
This commit is contained in:
parent
c5eecc320c
commit
784f75e665
@ -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,7 +158,8 @@ 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 New Issue
Block a user