qt_controller: Fix input when the controller applet is ignored

merge-requests/60/head
german77 2021-11-28 21:03:42 +07:00
parent 3031223153
commit dcc4685557
1 changed files with 3 additions and 0 deletions

@ -205,6 +205,9 @@ QtControllerSelectorDialog::QtControllerSelectorDialog(
// If all the parameters are met AND only allows a single player, // If all the parameters are met AND only allows a single player,
// stop the constructor here as we do not need to continue. // stop the constructor here as we do not need to continue.
if (CheckIfParametersMet() && parameters.enable_single_mode) { 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; return;
} }