From bc64a5727201613c3550f04a9b642c57fe1f0eb0 Mon Sep 17 00:00:00 2001 From: Kaldaien Date: Sun, 29 Dec 2024 07:40:37 -0500 Subject: [PATCH] Fixed PlayStation controller rumble not being cleared at game exit. --- CHANGELOG.txt | 1 + src/input/hid_reports/playstation.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index baa346945..4a0f85ea9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ + Added option to have ADHD mode disengage when Alt-Tabbing to apps on the same display as the game. + ADHD mode disables Aspect Ratio Stretch now. + + Fixed PlayStation controller rumble not being cleared at game exit. 24.12.29.1 ========== diff --git a/src/input/hid_reports/playstation.cpp b/src/input/hid_reports/playstation.cpp index d9906806a..33b7db689 100644 --- a/src/input/hid_reports/playstation.cpp +++ b/src/input/hid_reports/playstation.cpp @@ -2560,8 +2560,8 @@ SK_HID_PlayStationDevice::write_output_report (bool force) if (reset_finished) bFinished = false; }; - DWORD dwWaitState = WAIT_FAILED; - while (dwWaitState != WAIT_OBJECT_0) + DWORD dwWaitState = WAIT_FAILED; + while (true) { if (bQuit) break; @@ -3307,8 +3307,8 @@ SK_HID_PlayStationDevice::write_output_report (bool force) if (reset_finished) bFinished = false; }; - DWORD dwWaitState = WAIT_FAILED; - while (dwWaitState != WAIT_OBJECT_0) + DWORD dwWaitState = WAIT_FAILED; + while (true) { if (bQuit) break;