Xcode-iOS/Demos/src/keyboard.c
changeset 10127 42e35c82335d
parent 10126 21cbbf2beb93
child 10370 d90965a3b100
     1.1 --- a/Xcode-iOS/Demos/src/keyboard.c	Sun Mar 27 22:26:34 2016 +0200
     1.2 +++ b/Xcode-iOS/Demos/src/keyboard.c	Mon Mar 28 21:01:26 2016 +0200
     1.3 @@ -253,7 +253,7 @@
     1.4  
     1.5      int done = 0;
     1.6      /* loop till we get SDL_Quit */
     1.7 -    while (SDL_WaitEvent(&event)) {
     1.8 +    while (!done && SDL_WaitEvent(&event)) {
     1.9          switch (event.type) {
    1.10          case SDL_QUIT:
    1.11              done = 1;