Răsfoiți Sursa

hidapi: Don't run a separate event loop for device notifications.

Fixes Bugzilla #4286.
Ryan C. Gordon 6 ani în urmă
părinte
comite
be8ef94f18
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/joystick/hidapi/SDL_hidapijoystick.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapijoystick.c

@@ -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;