From 6d2adb0bc081015641cb32a0bbd830895b903f87 Mon Sep 17 00:00:00 2001 From: greggameplayer <33609333+greggameplayer@users.noreply.github.com> Date: Thu, 22 Nov 2018 01:24:39 +0100 Subject: [PATCH 1/2] Automatically disable joycons docked when docked mode is enable --- src/yuzu/configuration/configure_input.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 7ee572761..2465075af 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp @@ -93,6 +93,10 @@ void ConfigureInput::CallConfigureDialog(Args&&... args) { } void ConfigureInput::OnDockedModeChanged(bool last_state, bool new_state) { + if (ui->use_docked_mode->isChecked() && ui->handheld_connected->isChecked()){ + ui->handheld_connected->setChecked(false); + } + if (last_state == new_state) { return; } From c14af2f71d6f85424dc3bcc35621a085a244757e Mon Sep 17 00:00:00 2001 From: greggameplayer <33609333+greggameplayer@users.noreply.github.com> Date: Thu, 22 Nov 2018 18:26:43 +0100 Subject: [PATCH 2/2] correct clang-format --- src/yuzu/configuration/configure_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 2465075af..07092f001 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp @@ -96,7 +96,7 @@ void ConfigureInput::OnDockedModeChanged(bool last_state, bool new_state) { if (ui->use_docked_mode->isChecked() && ui->handheld_connected->isChecked()){ ui->handheld_connected->setChecked(false); } - + if (last_state == new_state) { return; }