Xcode-iOS/Demos/src/keyboard.c
changeset 10130 42e35c82335d
parent 10129 21cbbf2beb93
--- a/Xcode-iOS/Demos/src/keyboard.c	Sun Mar 27 22:26:34 2016 +0200
+++ b/Xcode-iOS/Demos/src/keyboard.c	Mon Mar 28 21:01:26 2016 +0200
@@ -253,7 +253,7 @@
 
     int done = 0;
     /* loop till we get SDL_Quit */
-    while (SDL_WaitEvent(&event)) {
+    while (!done && SDL_WaitEvent(&event)) {
         switch (event.type) {
         case SDL_QUIT:
             done = 1;