mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 14:47:59 -05:00
configure_input: Update the input profiles for other player tabs
This commit is contained in:
@ -124,8 +124,10 @@ void ConfigureInput::Initialize(InputCommon::InputSubsystem* input_subsystem,
|
||||
}
|
||||
}
|
||||
});
|
||||
connect(player_controllers[i], &ConfigureInputPlayer::RefreshInputDevices,
|
||||
[this] { UpdateAllInputDevices(); });
|
||||
connect(player_controllers[i], &ConfigureInputPlayer::RefreshInputDevices, this,
|
||||
&ConfigureInput::UpdateAllInputDevices);
|
||||
connect(player_controllers[i], &ConfigureInputPlayer::RefreshInputProfiles, this,
|
||||
&ConfigureInput::UpdateAllInputProfiles, Qt::QueuedConnection);
|
||||
connect(player_connected[i], &QCheckBox::stateChanged, [this, i](int state) {
|
||||
player_controllers[i]->ConnectPlayer(state == Qt::Checked);
|
||||
});
|
||||
@ -259,3 +261,13 @@ void ConfigureInput::UpdateAllInputDevices() {
|
||||
player->UpdateInputDeviceCombobox();
|
||||
}
|
||||
}
|
||||
|
||||
void ConfigureInput::UpdateAllInputProfiles(std::size_t player_index) {
|
||||
for (std::size_t i = 0; i < player_controllers.size(); ++i) {
|
||||
if (i == player_index) {
|
||||
continue;
|
||||
}
|
||||
|
||||
player_controllers[i]->UpdateInputProfiles();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user