Explorar o código

Allow quitting controllermap if there are no controllers attached

Sam Lantinga %!s(int64=4) %!d(string=hai) anos
pai
achega
8726f500ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/controllermap.c

+ 1 - 1
test/controllermap.c

@@ -746,7 +746,7 @@ main(int argc, char *argv[])
         return 2;
     }
 
-    while (SDL_NumJoysticks() == 0) {
+    while (!done && SDL_NumJoysticks() == 0) {
         SDL_Event event;
 
         while (SDL_PollEvent(&event) > 0) {