iOS: Fixed keyboard demo ignoring quit requests and window closing.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 28 Mar 2016 21:01:26 +0200
changeset 1012742e35c82335d
parent 10126 21cbbf2beb93
child 10128 65dffb9b1b34
iOS: Fixed keyboard demo ignoring quit requests and window closing.

This also fixed a warning about an unused variable.
Xcode-iOS/Demos/src/keyboard.c
     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;