mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Add cancel option to analog stick configuration
This commit is contained in:
		
							parent
							
								
									8fa6be5b15
								
							
						
					
					
						commit
						ac3a854f45
					
				
					 1 changed files with 13 additions and 10 deletions
				
			
		|  | @ -231,16 +231,19 @@ ConfigureInput::ConfigureInput(QWidget* parent) | |||
|                     }); | ||||
|         } | ||||
|         connect(analog_map_stick[analog_id], &QPushButton::clicked, [=]() { | ||||
|             QMessageBox::information(this, tr("Information"), | ||||
|                                      tr("After pressing OK, first move your joystick horizontally, " | ||||
|                                         "and then vertically.")); | ||||
|             HandleClick(analog_map_stick[analog_id], | ||||
|                         [=](const Common::ParamPackage& params) { | ||||
|                             analogs_param[analog_id] = params; | ||||
|                             ApplyConfiguration(); | ||||
|                             Settings::SaveProfile(ui->profile->currentIndex()); | ||||
|                         }, | ||||
|                         InputCommon::Polling::DeviceType::Analog); | ||||
|             if (QMessageBox::information( | ||||
|                     this, tr("Information"), | ||||
|                     tr("After pressing OK, first move your joystick horizontally, " | ||||
|                        "and then vertically."), | ||||
|                     QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) { | ||||
|                 HandleClick(analog_map_stick[analog_id], | ||||
|                             [=](const Common::ParamPackage& params) { | ||||
|                                 analogs_param[analog_id] = params; | ||||
|                                 ApplyConfiguration(); | ||||
|                                 Settings::SaveProfile(ui->profile->currentIndex()); | ||||
|                             }, | ||||
|                             InputCommon::Polling::DeviceType::Analog); | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue