citra-qt: release all buttons when render window focus is lost
credit to @Hawkheart for the original idea
This commit is contained in:
parent
423ab5e2bc
commit
5245c86f26
4 changed files with 20 additions and 0 deletions
|
@ -235,6 +235,11 @@ void GRenderWindow::mouseReleaseEvent(QMouseEvent* event) {
|
|||
motion_emu->EndTilt();
|
||||
}
|
||||
|
||||
void GRenderWindow::focusOutEvent(QFocusEvent* event) {
|
||||
QWidget::focusOutEvent(event);
|
||||
InputCommon::GetKeyboard()->ReleaseAllKeys();
|
||||
}
|
||||
|
||||
void GRenderWindow::ReloadSetKeymaps() {}
|
||||
|
||||
void GRenderWindow::OnClientAreaResized(unsigned width, unsigned height) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue