mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-20 10:23:23 +02:00
Add cancel option to analog stick configuration
This commit is contained in:
parent
8fa6be5b15
commit
ac3a854f45
@ -231,16 +231,19 @@ ConfigureInput::ConfigureInput(QWidget* parent)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
connect(analog_map_stick[analog_id], &QPushButton::clicked, [=]() {
|
connect(analog_map_stick[analog_id], &QPushButton::clicked, [=]() {
|
||||||
QMessageBox::information(this, tr("Information"),
|
if (QMessageBox::information(
|
||||||
tr("After pressing OK, first move your joystick horizontally, "
|
this, tr("Information"),
|
||||||
"and then vertically."));
|
tr("After pressing OK, first move your joystick horizontally, "
|
||||||
HandleClick(analog_map_stick[analog_id],
|
"and then vertically."),
|
||||||
[=](const Common::ParamPackage& params) {
|
QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) {
|
||||||
analogs_param[analog_id] = params;
|
HandleClick(analog_map_stick[analog_id],
|
||||||
ApplyConfiguration();
|
[=](const Common::ParamPackage& params) {
|
||||||
Settings::SaveProfile(ui->profile->currentIndex());
|
analogs_param[analog_id] = params;
|
||||||
},
|
ApplyConfiguration();
|
||||||
InputCommon::Polling::DeviceType::Analog);
|
Settings::SaveProfile(ui->profile->currentIndex());
|
||||||
|
},
|
||||||
|
InputCommon::Polling::DeviceType::Analog);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user