瀏覽代碼

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.
Sam Lantinga 2 年之前
父節點
當前提交
fbbee04423
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/video/windows/SDL_windowsrawinput.c

+ 3 - 0
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);
     }