mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #5707 from vitor-k/mod-scale
configure_input: fix modifier scale saving
This commit is contained in:
		
						commit
						e770fd6e95
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -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,7 @@ void ConfigureInput::RestoreDefaults() { | |||
|                 Config::default_analogs[analog_id][sub_button_id])}; | ||||
|             SetAnalogButton(params, analogs_param[analog_id], analog_sub_buttons[sub_button_id]); | ||||
|         } | ||||
|         analogs_param[analog_id].Set("modifier_scale", 0.5f); | ||||
|     } | ||||
|     UpdateButtonLabels(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue