diff options
author | wwylele <wwylele@gmail.com> | 2017-03-17 20:41:25 +0100 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-03-17 20:41:25 +0100 |
commit | 5245c86f2662caa0e1e4b20508608b11237993b3 (patch) | |
tree | 5e489260c666bf8f09891e7678bfa5661dfd1c8c /src/citra_qt | |
parent | Merge pull request #2497 from wwylele/input-2 (diff) | |
download | yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.gz yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.bz2 yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.lz yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.xz yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.tar.zst yuzu-5245c86f2662caa0e1e4b20508608b11237993b3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/bootmanager.cpp | 5 | ||||
-rw-r--r-- | src/citra_qt/bootmanager.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 28264df9a..e212433d9 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -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) { diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.h index 923a5b456..d1c00fc18 100644 --- a/src/citra_qt/bootmanager.h +++ b/src/citra_qt/bootmanager.h @@ -128,6 +128,8 @@ public: void mouseMoveEvent(QMouseEvent* event) override; void mouseReleaseEvent(QMouseEvent* event) override; + void focusOutEvent(QFocusEvent* event) override; + void ReloadSetKeymaps(); void OnClientAreaResized(unsigned width, unsigned height); |