summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-11-16 01:57:08 +0100
committerGitHub <noreply@github.com>2016-11-16 01:57:08 +0100
commit5a31552764dc8970253e642f4b829a8b785375c6 (patch)
tree8186a82c37ae04c17bd1d6250c524fc097f9671c /src/citra_qt/main.cpp
parentMerge pull request #2171 from jroweboy/fix-mac-build (diff)
parentRound the rectangle size to prevent float to int casting issues (diff)
downloadyuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.gz
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.bz2
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.lz
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.xz
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.tar.zst
yuzu-5a31552764dc8970253e642f4b829a8b785375c6.zip
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r--src/citra_qt/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index b904fec16..bcf2a706f 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -196,6 +196,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
// Setup hotkeys
RegisterHotkey("Main Window", "Load File", QKeySequence::Open);
+ RegisterHotkey("Main Window", "Swap Screens", QKeySequence::NextChild);
RegisterHotkey("Main Window", "Start Emulation");
LoadHotkeys();
@@ -203,6 +204,8 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
SLOT(OnMenuLoadFile()));
connect(GetHotkey("Main Window", "Start Emulation", this), SIGNAL(activated()), this,
SLOT(OnStartGame()));
+ connect(GetHotkey("Main Window", "Swap Screens", this), SIGNAL(activated()), this,
+ SLOT(OnSwapScreens()));
std::string window_title =
Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc);
@@ -550,6 +553,11 @@ void GMainWindow::OnConfigure() {
}
}
+void GMainWindow::OnSwapScreens() {
+ Settings::values.swap_screen = !Settings::values.swap_screen;
+ Settings::Apply();
+}
+
void GMainWindow::OnCreateGraphicsSurfaceViewer() {
auto graphicsSurfaceViewerWidget = new GraphicsSurfaceWidget(Pica::g_debug_context, this);
addDockWidget(Qt::RightDockWidgetArea, graphicsSurfaceViewerWidget);