mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-29 10:50:17 +00:00
fix clang-format
This commit is contained in:
parent
3d00beb9d5
commit
57f224fc50
1 changed files with 22 additions and 25 deletions
|
@ -138,14 +138,13 @@ ConfigureInput::ConfigureInput(QWidget* parent)
|
||||||
continue;
|
continue;
|
||||||
button_map[button_id]->setContextMenuPolicy(Qt::CustomContextMenu);
|
button_map[button_id]->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
connect(button_map[button_id], &QPushButton::released, [=]() {
|
connect(button_map[button_id], &QPushButton::released, [=]() {
|
||||||
handleClick(
|
handleClick(button_map[button_id],
|
||||||
button_map[button_id],
|
[=](const Common::ParamPackage& params) {
|
||||||
[=](const Common::ParamPackage& params) {
|
buttons_param[button_id] = params;
|
||||||
buttons_param[button_id] = params;
|
applyConfiguration();
|
||||||
applyConfiguration();
|
Settings::SaveProfile(ui->profile->currentIndex());
|
||||||
Settings::SaveProfile(ui->profile->currentIndex());
|
},
|
||||||
},
|
InputCommon::Polling::DeviceType::Button);
|
||||||
InputCommon::Polling::DeviceType::Button);
|
|
||||||
});
|
});
|
||||||
connect(button_map[button_id], &QPushButton::customContextMenuRequested,
|
connect(button_map[button_id], &QPushButton::customContextMenuRequested,
|
||||||
[=](const QPoint& menu_location) {
|
[=](const QPoint& menu_location) {
|
||||||
|
@ -174,15 +173,14 @@ ConfigureInput::ConfigureInput(QWidget* parent)
|
||||||
analog_map_buttons[analog_id][sub_button_id]->setContextMenuPolicy(
|
analog_map_buttons[analog_id][sub_button_id]->setContextMenuPolicy(
|
||||||
Qt::CustomContextMenu);
|
Qt::CustomContextMenu);
|
||||||
connect(analog_map_buttons[analog_id][sub_button_id], &QPushButton::released, [=]() {
|
connect(analog_map_buttons[analog_id][sub_button_id], &QPushButton::released, [=]() {
|
||||||
handleClick(
|
handleClick(analog_map_buttons[analog_id][sub_button_id],
|
||||||
analog_map_buttons[analog_id][sub_button_id],
|
[=](const Common::ParamPackage& params) {
|
||||||
[=](const Common::ParamPackage& params) {
|
SetAnalogButton(params, analogs_param[analog_id],
|
||||||
SetAnalogButton(params, analogs_param[analog_id],
|
analog_sub_buttons[sub_button_id]);
|
||||||
analog_sub_buttons[sub_button_id]);
|
applyConfiguration();
|
||||||
applyConfiguration();
|
Settings::SaveProfile(ui->profile->currentIndex());
|
||||||
Settings::SaveProfile(ui->profile->currentIndex());
|
},
|
||||||
},
|
InputCommon::Polling::DeviceType::Button);
|
||||||
InputCommon::Polling::DeviceType::Button);
|
|
||||||
});
|
});
|
||||||
connect(analog_map_buttons[analog_id][sub_button_id],
|
connect(analog_map_buttons[analog_id][sub_button_id],
|
||||||
&QPushButton::customContextMenuRequested, [=](const QPoint& menu_location) {
|
&QPushButton::customContextMenuRequested, [=](const QPoint& menu_location) {
|
||||||
|
@ -211,14 +209,13 @@ ConfigureInput::ConfigureInput(QWidget* parent)
|
||||||
QMessageBox::information(this, tr("Information"),
|
QMessageBox::information(this, tr("Information"),
|
||||||
tr("After pressing OK, first move your joystick horizontally, "
|
tr("After pressing OK, first move your joystick horizontally, "
|
||||||
"and then vertically."));
|
"and then vertically."));
|
||||||
handleClick(
|
handleClick(analog_map_stick[analog_id],
|
||||||
analog_map_stick[analog_id],
|
[=](const Common::ParamPackage& params) {
|
||||||
[=](const Common::ParamPackage& params) {
|
analogs_param[analog_id] = params;
|
||||||
analogs_param[analog_id] = params;
|
applyConfiguration();
|
||||||
applyConfiguration();
|
Settings::SaveProfile(ui->profile->currentIndex());
|
||||||
Settings::SaveProfile(ui->profile->currentIndex());
|
},
|
||||||
},
|
InputCommon::Polling::DeviceType::Analog);
|
||||||
InputCommon::Polling::DeviceType::Analog);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue