mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-04 14:02:45 +01:00
Always update handheld config
This commit is contained in:
parent
b0c9752663
commit
c1b81f776c
1 changed files with 2 additions and 4 deletions
|
@ -580,9 +580,7 @@ void ConfigureInputPlayer::ApplyConfiguration() {
|
||||||
if (player_index == 0) {
|
if (player_index == 0) {
|
||||||
auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX];
|
auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX];
|
||||||
const auto handheld_connected = handheld.connected;
|
const auto handheld_connected = handheld.connected;
|
||||||
if (player.controller_type == Settings::ControllerType::Handheld) {
|
|
||||||
handheld = player;
|
handheld = player;
|
||||||
}
|
|
||||||
handheld.connected = handheld_connected;
|
handheld.connected = handheld_connected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -596,7 +594,7 @@ void ConfigureInputPlayer::TryConnectSelectedController() {
|
||||||
controller_type != Settings::ControllerType::Handheld;
|
controller_type != Settings::ControllerType::Handheld;
|
||||||
|
|
||||||
// Connect Handheld depending on Player 1's controller configuration.
|
// 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];
|
auto& handheld = Settings::values.players.GetValue()[HANDHELD_INDEX];
|
||||||
const auto handheld_connected = ui->groupConnectedController->isChecked() &&
|
const auto handheld_connected = ui->groupConnectedController->isChecked() &&
|
||||||
controller_type == Settings::ControllerType::Handheld;
|
controller_type == Settings::ControllerType::Handheld;
|
||||||
|
|
Loading…
Reference in a new issue