diff options
author | MonsterDruide1 <5958456@gmail.com> | 2021-06-18 16:20:10 +0200 |
---|---|---|
committer | MonsterDruide1 <5958456@gmail.com> | 2021-09-18 23:22:11 +0200 |
commit | f25d6ebc45dc02904ef3ca6ad8efea9a0853d194 (patch) | |
tree | 45ad353f9b1a76e05cee0d9abe4a9642eaa9b3d0 /src/yuzu/main.cpp | |
parent | input_common/tas: Base playback & recording system (diff) | |
download | yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.gz yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.bz2 yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.lz yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.xz yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.tar.zst yuzu-f25d6ebc45dc02904ef3ca6ad8efea9a0853d194.zip |
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 22489231b..f3529d151 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1015,6 +1015,19 @@ void GMainWindow::InitializeHotkeys() { render_window->setAttribute(Qt::WA_Hover, true); } }); + connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Start/Stop"), this), + &QShortcut::activated, this, [&] { + Settings::values.tas_enable = !Settings::values.tas_enable; + LOG_INFO(Frontend, "Tas enabled {}", Settings::values.tas_enable); + }); + + connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Reset"), this), + &QShortcut::activated, this, [&] { Settings::values.tas_reset = true; }); + connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("TAS Record"), this), + &QShortcut::activated, this, [&] { + Settings::values.tas_record = !Settings::values.tas_record; + LOG_INFO(Frontend, "Tas recording {}", Settings::values.tas_record); + }); } void GMainWindow::SetDefaultUIGeometry() { |