diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-07 17:33:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 17:33:24 +0100 |
commit | 1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f (patch) | |
tree | ac4299664935ba1a31222d4daa15ef0088997565 | |
parent | Merge pull request #2206 from lioncash/audio-stop (diff) | |
parent | yuzu: add a hotkey to switch between undocked and docked mode (diff) | |
download | yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.tar yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.tar.gz yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.tar.bz2 yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.tar.lz yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.tar.xz yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.tar.zst yuzu-1a4d733ec73ecefb3f2a2a4b54450a17075f2a9f.zip |
-rw-r--r-- | src/yuzu/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 0f5a14841..c6f3ab4e4 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -11,6 +11,7 @@ #include "applets/profile_select.h" #include "applets/software_keyboard.h" #include "applets/web_browser.h" +#include "configuration/configure_input.h" #include "configuration/configure_per_general.h" #include "core/file_sys/vfs.h" #include "core/file_sys/vfs_real.h" @@ -522,6 +523,7 @@ void GMainWindow::InitializeHotkeys() { Qt::ApplicationShortcut); hotkey_registry.RegisterHotkey("Main Window", "Capture Screenshot", QKeySequence(QKeySequence::Print)); + hotkey_registry.RegisterHotkey("Main Window", "Change Docked Mode", QKeySequence(Qt::Key_F10)); hotkey_registry.LoadHotkeys(); @@ -591,6 +593,12 @@ void GMainWindow::InitializeHotkeys() { OnCaptureScreenshot(); } }); + connect(hotkey_registry.GetHotkey("Main Window", "Change Docked Mode", this), + &QShortcut::activated, this, [&] { + Settings::values.use_docked_mode = !Settings::values.use_docked_mode; + OnDockedModeChanged(!Settings::values.use_docked_mode, + Settings::values.use_docked_mode); + }); } void GMainWindow::SetDefaultUIGeometry() { |