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:
parent
ae4cd1ebf1
commit
85878d894a
8 changed files with 7 additions and 13 deletions
|
@ -94,7 +94,6 @@ void KeyCache::populate()
|
|||
handler->listenForKey(k);
|
||||
}
|
||||
handler->listenForKey(EscapeKey);
|
||||
handler->listenForKey(CancelKey);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -309,7 +309,7 @@ public:
|
|||
|
||||
virtual bool cancelPressed()
|
||||
{
|
||||
return wasKeyDown(KeyType::ESC) || m_receiver->WasKeyDown(CancelKey);
|
||||
return wasKeyDown(KeyType::ESC);
|
||||
}
|
||||
|
||||
virtual void clearWasKeyPressed()
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue