hidapi: Don't run a separate event loop for device notifications.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Oct 2018 14:43:39 -0400
changeset 1236267496c3f9626
parent 12361 60cdd518cf9b
child 12363 aa3ad38b7809
hidapi: Don't run a separate event loop for device notifications.

Fixes Bugzilla #4286.
src/joystick/hidapi/SDL_hidapijoystick.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapijoystick.c	Fri Oct 26 09:49:27 2018 -0700
     1.2 +++ b/src/joystick/hidapi/SDL_hidapijoystick.c	Fri Oct 26 14:43:39 2018 -0400
     1.3 @@ -307,7 +307,7 @@
     1.4          return;
     1.5      }
     1.6  
     1.7 -#if defined(__WIN32__)
     1.8 +#if 0 /* just let the usual SDL_PumpEvents loop dispatch these. --ryan.   defined(__WIN32__)*/
     1.9      /* We'll only get messages on the same thread that created the window */
    1.10      if (SDL_ThreadID() == SDL_HIDAPI_discovery.m_nThreadID) {
    1.11          MSG msg;