From 75f9c2cc13c503e2dc648a318ed2da2cd5581898 Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Sat, 30 Jan 2021 23:39:35 -0300 Subject: [PATCH] configure_input: fix modifier scale saving --- src/citra_qt/configuration/configure_input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/citra_qt/configuration/configure_input.cpp b/src/citra_qt/configuration/configure_input.cpp index 85eeb5f61e..70307b0071 100644 --- a/src/citra_qt/configuration/configure_input.cpp +++ b/src/citra_qt/configuration/configure_input.cpp @@ -266,6 +266,8 @@ ConfigureInput::ConfigureInput(QWidget* parent) tr("Modifier Scale: %1%").arg(slider_value)); analogs_param[analog_id].Set("modifier_scale", slider_value / 100.0f); } + ApplyConfiguration(); + Settings::SaveProfile(ui->profile->currentIndex()); }); } @@ -373,6 +375,9 @@ void ConfigureInput::RestoreDefaults() { Config::default_analogs[analog_id][sub_button_id])}; SetAnalogButton(params, analogs_param[analog_id], analog_sub_buttons[sub_button_id]); } + if (analogs_param[analog_id].Get("modifier_scale", 0.5f) != 0.5f) { + analogs_param[analog_id].Set("modifier_scale", 0.5f); + } } UpdateButtonLabels();