1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-21 11:55:43 +02:00

Android: Fix back button sometimes not working as ESC (#14743)

This commit is contained in:
grorp
2024-06-11 22:37:57 +02:00
committed by GitHub
parent ae4cd1ebf1
commit 85878d894a
8 changed files with 7 additions and 13 deletions

View File

@@ -94,7 +94,6 @@ void KeyCache::populate()
handler->listenForKey(k);
}
handler->listenForKey(EscapeKey);
handler->listenForKey(CancelKey);
}
}

View File

@@ -309,7 +309,7 @@ public:
virtual bool cancelPressed()
{
return wasKeyDown(KeyType::ESC) || m_receiver->WasKeyDown(CancelKey);
return wasKeyDown(KeyType::ESC);
}
virtual void clearWasKeyPressed()

View File

@@ -348,7 +348,6 @@ const char *KeyPress::name() const
}
const KeyPress EscapeKey("KEY_ESCAPE");
const KeyPress CancelKey("KEY_CANCEL");
const KeyPress LMBKey("KEY_LBUTTON");
const KeyPress MMBKey("KEY_MBUTTON");

View File

@@ -66,7 +66,6 @@ protected:
// Global defines for convenience
extern const KeyPress EscapeKey;
extern const KeyPress CancelKey;
extern const KeyPress LMBKey;
extern const KeyPress MMBKey; // Middle Mouse Button