diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-03-25 17:01:11 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-03-25 17:10:34 -0300 |
commit | 9ebc27234d1f79516ea1a785c31551c26118997d (patch) | |
tree | 2ec57b0eb221b553b6a6f55bfee88dfaf20ceecc /src/yuzu/main.cpp | |
parent | bbb396d7f1e4bd28fdd921af91b766d4504e5f4a (diff) |
bootmanager: Bypass input focus issues
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index c8db7b907..ae3b49709 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1965,6 +1965,18 @@ void GMainWindow::dragMoveEvent(QDragMoveEvent* event) { event->acceptProposedAction(); } +void GMainWindow::keyPressEvent(QKeyEvent* event) { + if (render_window) { + render_window->ForwardKeyPressEvent(event); + } +} + +void GMainWindow::keyReleaseEvent(QKeyEvent* event) { + if (render_window) { + render_window->ForwardKeyReleaseEvent(event); + } +} + bool GMainWindow::ConfirmChangeGame() { if (emu_thread == nullptr) return true; |