mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
basic keyboard: release all keys on FocusOut event
This commit is contained in:
parent
67e2e154fa
commit
5416f60643
3 changed files with 33 additions and 6 deletions
|
|
@ -186,3 +186,14 @@ void KeyboardHandlerBase::SetIntercepted(bool intercepted)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void KeyboardHandlerBase::ReleaseAllKeys()
|
||||
{
|
||||
for (const Keyboard& keyboard : m_keyboards)
|
||||
{
|
||||
for (const KbButton& button : keyboard.m_buttons)
|
||||
{
|
||||
Key(button.m_keyCode, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue