diff --git a/CHANGES b/CHANGES index 021ef7dba..c5b185d04 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,7 @@ Bugfixes: - GBA: Add initial I/O register settings for background matrix registers - Qt: Fix potential crash if a gamepad causes focus to change - GBA Memory: Allow SRAM to be 64kB + - Qt: Fix controller axis querying Misc: - Qt: Show multiplayer numbers in window title diff --git a/src/platform/qt/InputController.cpp b/src/platform/qt/InputController.cpp index 79b439ce8..9b36fd24c 100644 --- a/src/platform/qt/InputController.cpp +++ b/src/platform/qt/InputController.cpp @@ -281,13 +281,14 @@ void InputController::testGamepad() { GamepadAxisEvent* event = new GamepadAxisEvent(axis.first, axis.second, newlyAboveThreshold, this); if (newlyAboveThreshold) { postPendingEvent(event->gbaKey()); + QApplication::sendEvent(QApplication::focusWidget(), event); if (!event->isAccepted()) { clearPendingEvent(event->gbaKey()); } } else if (oldAxes.contains(axis)) { clearPendingEvent(event->gbaKey()); + QApplication::sendEvent(QApplication::focusWidget(), event); } - QApplication::sendEvent(QApplication::focusWidget(), event); } if (!QApplication::focusWidget()) {