mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-29 20:25:19 +01:00
Simulate all keys being released when when game loses focus (#13336)
This commit is contained in:
@@ -109,6 +109,12 @@ public:
|
||||
bool handleEvent(const irr::SEvent::SJoystickEvent &ev);
|
||||
void clear();
|
||||
|
||||
void releaseAllKeys()
|
||||
{
|
||||
m_keys_released |= m_keys_down;
|
||||
m_keys_down.reset();
|
||||
}
|
||||
|
||||
bool wasKeyDown(GameKeyType b)
|
||||
{
|
||||
bool r = m_past_keys_pressed[b];
|
||||
|
||||
Reference in New Issue
Block a user