Allow exit splitscreen multiplayer with gamepad only

This commit is contained in:
Benau
2020-04-28 12:37:40 +08:00
parent ea6115273d
commit 5dffc8cfa1

View File

@@ -882,6 +882,10 @@ void InputManager::dispatchInput(Input::InputType type, int deviceID,
KartSelectionScreen::getRunningInstance()->joinPlayer(device, NULL/*player profile*/);
}
}
else if (value != 0 && (action == PA_MENU_CANCEL))
{
StateManager::get()->escapePressed();
}
return; // we're done here, ignore devices that aren't
// associated with players
}