2
0
Эх сурвалжийг харах

Make sure we get mouse events as soon as possible

Sam Lantinga 1 жил өмнө
parent
commit
c03c01e9b2

+ 3 - 0
src/video/windows/SDL_windowsmouse.c

@@ -68,6 +68,9 @@ static DWORD WINAPI WIN_RawMouseThread(LPVOID param)
         return 0;
     }
 
+    /* Make sure we get mouse events as soon as possible */
+    SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
+
     /* Tell the parent we're ready to go! */
     SetEvent(thread_data.ready_event);