SDL: Revert "Only clear the raw input queue status if we don't call GetRawInputBuffer()"

From fbbee04423683e71985846d1fce4f861cbc80356 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 31 Mar 2024 12:42:50 -0700
Subject: [PATCH] Revert "Only clear the raw input queue status if we don't
 call GetRawInputBuffer()"

This reverts commit 02c63667c7b8107bb295822376c8d496fe0552b0.

It turns out that QS_RAWINPUT isn't actually cleared by GetRawInputBuffer(). See https://github.com/libsdl-org/SDL/issues/9409 for more details.
---
 src/video/windows/SDL_windowsrawinput.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/video/windows/SDL_windowsrawinput.c b/src/video/windows/SDL_windowsrawinput.c
index e53451a0a1af4..490449058a588 100644
--- a/src/video/windows/SDL_windowsrawinput.c
+++ b/src/video/windows/SDL_windowsrawinput.c
@@ -83,6 +83,9 @@ static DWORD WINAPI WIN_RawInputThread(LPVOID param)
             break;
         }
 
+        /* Clear the queue status so MsgWaitForMultipleObjects() will wait again */
+        (void)GetQueueStatus(QS_RAWINPUT);
+
         WIN_PollRawInput(_this);
     }