Skip to content

Commit

Permalink
hidapi: Don't run a separate event loop for device notifications.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #4286.
  • Loading branch information
icculus committed Oct 26, 2018
1 parent 91da496 commit be8ef94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/hidapi/SDL_hidapijoystick.c
Expand Up @@ -307,7 +307,7 @@ HIDAPI_UpdateDiscovery()
return;
}

#if defined(__WIN32__)
#if 0 /* just let the usual SDL_PumpEvents loop dispatch these. --ryan. defined(__WIN32__)*/
/* We'll only get messages on the same thread that created the window */
if (SDL_ThreadID() == SDL_HIDAPI_discovery.m_nThreadID) {
MSG msg;
Expand Down

0 comments on commit be8ef94

Please sign in to comment.