diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-16 19:39:51 -0600 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-02-25 22:20:32 -0600 |
commit | 60688bf0d5fa6daf40ccd10af82386bc2d32f1fa (patch) | |
tree | 242cb7de7a65be1337f61c4bcdd8dfca79b0ecfa /src/yuzu/applets/qt_controller.cpp | |
parent | 833afb7ce340030593f5d4fcb3cbd59a19530a7f (diff) |
yuzu: config: Remove player 8 and 9 from config file
Diffstat (limited to 'src/yuzu/applets/qt_controller.cpp')
-rw-r--r-- | src/yuzu/applets/qt_controller.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/yuzu/applets/qt_controller.cpp b/src/yuzu/applets/qt_controller.cpp index c30b54499..d22db9f6b 100644 --- a/src/yuzu/applets/qt_controller.cpp +++ b/src/yuzu/applets/qt_controller.cpp @@ -542,19 +542,14 @@ void QtControllerSelectorDialog::UpdateControllerState(std::size_t player_index) const auto player_connected = player_groupboxes[player_index]->isChecked() && controller_type != Core::HID::NpadStyleIndex::Handheld; - if (controller->GetNpadStyleIndex(true) == controller_type && - controller->IsConnected(true) == player_connected) { - return; - } - // Disconnect the controller first. UpdateController(controller, controller_type, false); // Handheld if (player_index == 0) { + auto* handheld = system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld); + UpdateController(handheld, controller_type, false); if (controller_type == Core::HID::NpadStyleIndex::Handheld) { - auto* handheld = - system.HIDCore().GetEmulatedController(Core::HID::NpadIdType::Handheld); UpdateController(handheld, Core::HID::NpadStyleIndex::Handheld, player_groupboxes[player_index]->isChecked()); } |