summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-04 04:02:59 +0100
committerGitHub <noreply@github.com>2021-02-04 04:02:59 +0100
commitb331bb5210173cfa3087a80fc6c02ba1a34475a8 (patch)
treebbf771a98a7218a21839d6fe6f64319389d334d2
parentMerge pull request #5863 from ogniK5377/disable-reverb (diff)
parentAlways update handheld config (diff)
downloadyuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.tar
yuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.tar.gz
yuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.tar.bz2
yuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.tar.lz
yuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.tar.xz
yuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.tar.zst
yuzu-b331bb5210173cfa3087a80fc6c02ba1a34475a8.zip
-rw-r--r--src/yuzu/configuration/configure_input_player.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp
index fbe36046b..1ab5bcbb9 100644
--- a/src/yuzu/configuration/configure_input_player.cpp
+++ b/src/yuzu/configuration/configure_input_player.cpp
@@ -580,9 +580,7 @@ void ConfigureInputPlayer::ApplyConfiguration() {
if (player_index == 0) {
auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX];
const auto handheld_connected = handheld.connected;
- if (player.controller_type == Settings::ControllerType::Handheld) {
- handheld = player;
- }
+ handheld = player;
handheld.connected = handheld_connected;
}
}
@@ -596,7 +594,7 @@ void ConfigureInputPlayer::TryConnectSelectedController() {
controller_type != Settings::ControllerType::Handheld;
// Connect Handheld depending on Player 1's controller configuration.
- if (player_index == 0 && controller_type == Settings::ControllerType::Handheld) {
+ if (player_index == 0) {
auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX];
const auto handheld_connected = ui->groupConnectedController->isChecked() &&
controller_type == Settings::ControllerType::Handheld;