Better Back Button Behavior On SDL Android

This commit is contained in:
TheBrokenRail
2023-11-03 13:37:27 -04:00
committed by iProgramInCpp
parent 8af9d4b0c8
commit 2356757730
5 changed files with 39 additions and 12 deletions

View File

@@ -546,3 +546,12 @@ std::string StartMenuScreen::getSplashString()
return std::string(gSplashes[m_chosenSplash]);
}
bool StartMenuScreen::handleBackEvent(bool b)
{
if (!b)
{
m_pMinecraft->quit();
}
return true;
}