diff options
| author | 2021-01-17 18:40:27 -0600 | |
|---|---|---|
| committer | 2021-01-17 18:40:27 -0600 | |
| commit | e7c1d7bf77efc01260ac37dbec320c9e547fa9db (patch) | |
| tree | 8e2a37ac1217604eb21d2f476ef3177953c1f41e /src | |
| parent | Fix player 1 default connected value (diff) | |
| download | yuzu-e7c1d7bf77efc01260ac37dbec320c9e547fa9db.tar.gz yuzu-e7c1d7bf77efc01260ac37dbec320c9e547fa9db.tar.xz yuzu-e7c1d7bf77efc01260ac37dbec320c9e547fa9db.zip | |
Always update configuration for handheld
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_input_player.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index 46ea026e4..13f0351d4 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp | |||
| @@ -575,6 +575,16 @@ void ConfigureInputPlayer::ApplyConfiguration() { | |||
| 575 | 575 | ||
| 576 | std::transform(motions_param.begin(), motions_param.end(), motions.begin(), | 576 | std::transform(motions_param.begin(), motions_param.end(), motions.begin(), |
| 577 | [](const Common::ParamPackage& param) { return param.Serialize(); }); | 577 | [](const Common::ParamPackage& param) { return param.Serialize(); }); |
| 578 | |||
| 579 | // Apply configuration for handheld | ||
| 580 | if (player_index == 0) { | ||
| 581 | auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX]; | ||
| 582 | if (player.controller_type == Settings::ControllerType::Handheld) { | ||
| 583 | handheld = player; | ||
| 584 | } | ||
| 585 | handheld.connected = ui->groupConnectedController->isChecked() && | ||
| 586 | player.controller_type == Settings::ControllerType::Handheld; | ||
| 587 | } | ||
| 578 | } | 588 | } |
| 579 | 589 | ||
| 580 | void ConfigureInputPlayer::TryConnectSelectedController() { | 590 | void ConfigureInputPlayer::TryConnectSelectedController() { |