1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00: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__
bool GameFormSpec::handleAndroidUIInput()
{
if (m_formspec) {
m_formspec->getAndroidUIInput();
// FIXME: m_formspec and this value are not in sync at all times.
GUIModalMenu *menu = g_menumgr.tryGetTopMenu();
if (menu) {
menu->getAndroidUIInput();
return true;
}
return false;