1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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