test/testgamecontroller.c
changeset 9607 7746ab058d12
parent 9340 af5be9462bb4
child 9611 c23b2fa8d4c2
     1.1 --- a/test/testgamecontroller.c	Mon May 18 21:17:13 2015 +0200
     1.2 +++ b/test/testgamecontroller.c	Mon May 18 21:21:14 2015 +0200
     1.3 @@ -153,6 +153,12 @@
     1.4          done = SDL_TRUE;
     1.5          retval = SDL_TRUE;  /* keep going, wait for reattach. */
     1.6      }
     1.7 +
     1.8 +#ifdef __EMSCRIPTEN__
     1.9 +    if (done) {
    1.10 +        emscripten_cancel_main_loop();
    1.11 +    }
    1.12 +#endif
    1.13  }
    1.14  
    1.15  SDL_bool