Преглед изворни кода

qt_controller: Fix input when the controller applet is ignored

german77 пре 4 година
родитељ
комит
dcc4685557
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      src/yuzu/applets/qt_controller.cpp

+ 3 - 0
src/yuzu/applets/qt_controller.cpp

@@ -205,6 +205,9 @@ QtControllerSelectorDialog::QtControllerSelectorDialog(
     // If all the parameters are met AND only allows a single player,
     // stop the constructor here as we do not need to continue.
     if (CheckIfParametersMet() && parameters.enable_single_mode) {
+        for (std::size_t player_index = 0; player_index < NUM_PLAYERS; ++player_index) {
+            system.HIDCore().GetEmulatedControllerByIndex(player_index)->DisableConfiguration();
+        }
         return;
     }