Push desktop kart selection depends on device available in mobile STK

This commit is contained in:
Benau 2020-04-21 18:26:45 +08:00
parent abfb9e535c
commit 8c412ee840

View File

@ -1584,6 +1584,9 @@ bool KartSelectionScreen::useContinueButton() const
{
if (m_multiplayer)
return false;
if (irr_driver->getDevice()->hasHardwareKeyboard() ||
input_manager->getGamepadCount() > 0)
return false;
bool multitouch_enabled = (UserConfigParams::m_multitouch_active == 1 &&
irr_driver->getDevice()->supportsTouchDevice()) ||
UserConfigParams::m_multitouch_active > 1;