mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-07-02 15:50:47 -07:00
input_common: Release mouse buttons on out of focus
This commit is contained in:
@ -539,6 +539,8 @@ bool GRenderWindow::event(QEvent* event) {
|
||||
void GRenderWindow::focusOutEvent(QFocusEvent* event) {
|
||||
QWidget::focusOutEvent(event);
|
||||
input_subsystem->GetKeyboard()->ReleaseAllKeys();
|
||||
input_subsystem->GetMouse()->ReleaseAllButtons();
|
||||
this->TouchReleased(0);
|
||||
}
|
||||
|
||||
void GRenderWindow::resizeEvent(QResizeEvent* event) {
|
||||
|
Reference in New Issue
Block a user