1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Android: Workaround for partially broken inputs

This commit is contained in:
grorp
2025-07-27 20:24:21 +02:00
committed by sfan5
parent 0deee5eaf0
commit 7345b54f18

View File

@@ -563,8 +563,10 @@ bool GameFormSpec::handleCallbacks()
#ifdef __ANDROID__ #ifdef __ANDROID__
bool GameFormSpec::handleAndroidUIInput() bool GameFormSpec::handleAndroidUIInput()
{ {
if (m_formspec) { // FIXME: m_formspec and this value are not in sync at all times.
m_formspec->getAndroidUIInput(); GUIModalMenu *menu = g_menumgr.tryGetTopMenu();
if (menu) {
menu->getAndroidUIInput();
return true; return true;
} }
return false; return false;