From 2d6bdc1f82410d65d5cb1f192012d32a6854c1be Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 1 May 2020 16:42:43 +1000 Subject: [PATCH] Qt: Fix rumble not stopping on power off --- src/duckstation-qt/qthostinterface.cpp | 2 +- src/frontend-common/common_host_interface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 799e7f36a..ad0090476 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -444,7 +444,7 @@ void QtHostInterface::OnSystemPaused(bool paused) void QtHostInterface::OnSystemDestroyed() { - HostInterface::OnSystemDestroyed(); + CommonHostInterface::OnSystemDestroyed(); startBackgroundControllerPollTimer(); emit emulationStopped(); diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index ed3857724..2135e5eb2 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -517,7 +517,7 @@ void CommonHostInterface::StopControllerRumble() { for (ControllerRumbleState& rumble : m_controller_vibration_motors) { - bool changed = true; + bool changed = false; for (u32 i = 0; i < rumble.num_motors; i++) { changed |= (rumble.last_strength[i] != 0.0f);