mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 04:35:50 +01:00
Always update configuration for handheld
This commit is contained in:
parent
0bd8cecc94
commit
e7c1d7bf77
@ -575,6 +575,16 @@ void ConfigureInputPlayer::ApplyConfiguration() {
|
|||||||
|
|
||||||
std::transform(motions_param.begin(), motions_param.end(), motions.begin(),
|
std::transform(motions_param.begin(), motions_param.end(), motions.begin(),
|
||||||
[](const Common::ParamPackage& param) { return param.Serialize(); });
|
[](const Common::ParamPackage& param) { return param.Serialize(); });
|
||||||
|
|
||||||
|
// Apply configuration for handheld
|
||||||
|
if (player_index == 0) {
|
||||||
|
auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX];
|
||||||
|
if (player.controller_type == Settings::ControllerType::Handheld) {
|
||||||
|
handheld = player;
|
||||||
|
}
|
||||||
|
handheld.connected = ui->groupConnectedController->isChecked() &&
|
||||||
|
player.controller_type == Settings::ControllerType::Handheld;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureInputPlayer::TryConnectSelectedController() {
|
void ConfigureInputPlayer::TryConnectSelectedController() {
|
||||||
|
Loading…
Reference in New Issue
Block a user