mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Make sure we get mouse events as soon as possible
This commit is contained in:
@@ -68,6 +68,9 @@ static DWORD WINAPI WIN_RawMouseThread(LPVOID param)
|
|||||||
return 0;
|
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! */
|
/* Tell the parent we're ready to go! */
|
||||||
SetEvent(thread_data.ready_event);
|
SetEvent(thread_data.ready_event);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user