Make sure we get mouse events as soon as possible

This commit is contained in:
Sam Lantinga committed 2024-01-04 09:12:55 -08:00
1 parent 5cbdeab799
commit c03c01e9b2
1 file changed
+3
+3
View File
@@ -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);