mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 11:38:49 +00:00
Fixed HIDAPI hotplug detection in applications that don't initialize video
This commit is contained in:
parent
d3f9899df5
commit
eaeca340f3
3 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue