test/testjoystick.c
changeset 9607 7746ab058d12
parent 9433 bd062398b648
child 9619 b94b6d0bff0f
     1.1 --- a/test/testjoystick.c	Mon May 18 21:17:13 2015 +0200
     1.2 +++ b/test/testjoystick.c	Mon May 18 21:21:14 2015 +0200
     1.3 @@ -175,6 +175,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  static SDL_bool