mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 15:23:34 +00:00
Fixed HIDAPI hotplug detection in applications that don't initialize video
This commit is contained in:
@@ -388,7 +388,7 @@ static void HIDAPI_UpdateDiscovery(void)
|
||||
}
|
||||
|
||||
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_WINGDK)
|
||||
if (SDL_IsMainThread()) {
|
||||
if (SDL_IsVideoThread()) {
|
||||
// just let the usual SDL_PumpEvents loop dispatch these, fixing bug 2998. --ryan.
|
||||
} else {
|
||||
// We'll only get messages on the same thread that created the window
|
||||
|
||||
Reference in New Issue
Block a user