mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
configure_input_player: Eliminate variable shadowing
This commit is contained in:
parent
2dba59d1ff
commit
e2a86e2c8a
1 changed files with 5 additions and 4 deletions
|
@ -497,10 +497,11 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
|
||||||
param.Set("invert_y", invert_str);
|
param.Set("invert_y", invert_str);
|
||||||
emulated_controller->SetStickParam(analog_id, param);
|
emulated_controller->SetStickParam(analog_id, param);
|
||||||
}
|
}
|
||||||
for (int sub_button_id = 0; sub_button_id < ANALOG_SUB_BUTTONS_NUM;
|
for (int analog_sub_button_id = 0;
|
||||||
++sub_button_id) {
|
analog_sub_button_id < ANALOG_SUB_BUTTONS_NUM;
|
||||||
analog_map_buttons[analog_id][sub_button_id]->setText(
|
++analog_sub_button_id) {
|
||||||
AnalogToText(param, analog_sub_buttons[sub_button_id]));
|
analog_map_buttons[analog_id][analog_sub_button_id]->setText(
|
||||||
|
AnalogToText(param, analog_sub_buttons[analog_sub_button_id]));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
context_menu.exec(analog_map_buttons[analog_id][sub_button_id]->mapToGlobal(
|
context_menu.exec(analog_map_buttons[analog_id][sub_button_id]->mapToGlobal(
|
||||||
|
|
Loading…
Reference in a new issue