From ce00cf77274f5f83d9f2156e417a0fe145acaaa9 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 19 Nov 2020 23:22:52 -0800 Subject: [PATCH] Qt: Fix gamepad event dispatching (fixes #1922) --- CHANGES | 1 + src/platform/qt/InputController.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8b15b5f8e..81f3cacbe 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ Other fixes: - Debugger: Close trace log when done tracing - Qt: Fix running proxied video if it gets pushed to the main thread - Qt: Fix game display sometimes disappearing after closing load/save state screen + - Qt: Fix gamepad event dispatching (fixes mgba.io/i/1922) - Wii: Fix crash on unloading irregularly sized GBA ROMs 0.8.4: (2020-10-29) diff --git a/src/platform/qt/InputController.cpp b/src/platform/qt/InputController.cpp index 127fda755..99e6e880a 100644 --- a/src/platform/qt/InputController.cpp +++ b/src/platform/qt/InputController.cpp @@ -649,7 +649,7 @@ void InputController::sendGamepadEvent(QEvent* event) { } else { focusWidget = QApplication::focusWidget(); } - QApplication::sendEvent(focusWidget, event); + QApplication::postEvent(focusWidget, event, Qt::HighEventPriority); } void InputController::postPendingEvent(GBAKey key) {