mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-19 12:40:34 +00:00
Fixed HIDAPI hotplug detection in applications that don't initialize video
(cherry picked from commit eaeca340f3)
This commit is contained in:
parent
b5cad69b9c
commit
4361920501
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