1
0
Fork 0
forked from suyu/suyu

Merge pull request #7465 from german77/no_input

qt_controller: Fix input when the controller applet is ignored
This commit is contained in:
Morph 2021-11-29 07:25:36 -05:00 committed by GitHub
commit 614702488f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}