diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-26 09:20:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 09:20:02 -0500 |
commit | c50a930bbb12184e9dee70000cec5588f2f56b0a (patch) | |
tree | 242cb7de7a65be1337f61c4bcdd8dfca79b0ecfa /src/yuzu/applets/qt_controller.cpp | |
parent | 833afb7ce340030593f5d4fcb3cbd59a19530a7f (diff) | |
parent | 60688bf0d5fa6daf40ccd10af82386bc2d32f1fa (diff) |
Merge pull request #9824 from german77/burning-profiles
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()); } |