mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
Release all keyboard keys on focus loss (fixes #1987)
This commit is contained in:
@ -128,6 +128,11 @@ void KeyRelease(QKeyEvent* event)
|
||||
KeyHotkeyMask &= ~(1<<i);
|
||||
}
|
||||
|
||||
void KeyReleaseAll()
|
||||
{
|
||||
KeyInputMask = 0xFFF;
|
||||
KeyHotkeyMask = 0;
|
||||
}
|
||||
|
||||
bool JoystickButtonDown(int val)
|
||||
{
|
||||
|
Reference in New Issue
Block a user