summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-03-22 01:52:25 +0100
committerGitHub <noreply@github.com>2023-03-22 01:52:25 +0100
commitdba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab (patch)
tree7c584dee97283662aa7c76b29e03dff780dd6528
parentMerge pull request #9970 from bunnei/string-util-view (diff)
parentconfig: Fix controller config from resetting (diff)
downloadyuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.tar
yuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.tar.gz
yuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.tar.bz2
yuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.tar.lz
yuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.tar.xz
yuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.tar.zst
yuzu-dba86ee007c0b7e5cc8aecbcd730fbfaa8ecd0ab.zip
-rw-r--r--src/yuzu/configuration/configure_input.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp
index 1db374d4a..7fce85bca 100644
--- a/src/yuzu/configuration/configure_input.cpp
+++ b/src/yuzu/configuration/configure_input.cpp
@@ -189,6 +189,8 @@ QList<QWidget*> ConfigureInput::GetSubTabs() const {
}
void ConfigureInput::ApplyConfiguration() {
+ const bool was_global = Settings::values.players.UsingGlobal();
+ Settings::values.players.SetGlobal(true);
for (auto* controller : player_controllers) {
controller->ApplyConfiguration();
}
@@ -201,6 +203,7 @@ void ConfigureInput::ApplyConfiguration() {
Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked());
Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked());
+ Settings::values.players.SetGlobal(was_global);
}
void ConfigureInput::changeEvent(QEvent* event) {