From 784f75e66556cce8705f77ebe632637ea11c5566 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 3 Jun 2024 00:10:31 -0300 Subject: [PATCH] Update TurboWhileHeld hotkey to refactored Input --- src/Ryujinx/UI/Models/Input/HotkeyConfig.cs | 15 ++++++++++++++- .../UI/Views/Settings/SettingsHotkeysView.axaml | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx/UI/Models/Input/HotkeyConfig.cs b/src/Ryujinx/UI/Models/Input/HotkeyConfig.cs index 02fd84b83..e7e537500 100644 --- a/src/Ryujinx/UI/Models/Input/HotkeyConfig.cs +++ b/src/Ryujinx/UI/Models/Input/HotkeyConfig.cs @@ -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) { if (config != null) @@ -129,6 +140,7 @@ namespace Ryujinx.Ava.UI.Models.Input VolumeUp = config.VolumeUp; VolumeDown = config.VolumeDown; ToggleTurbo = config.ToggleTurbo; + TurboWhileHeld = config.TurboWhileHeld; } } @@ -146,7 +158,8 @@ namespace Ryujinx.Ava.UI.Models.Input VolumeUp = VolumeUp, VolumeDown = VolumeDown, ToggleTurbo = ToggleTurbo, - }; + TurboWhileHeld = TurboWhileHeld, + }; return config; } diff --git a/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml b/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml index 4a1c75b47..d0479ee19 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml +++ b/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml @@ -107,7 +107,7 @@ @@ -115,7 +115,7 @@ - +