]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Game.cpp
Fixed #11 so that we can close the window while editing text
[lugaru.git] / Source / Game.cpp
index ca2cb5df914734cc6a6a5ca415ee722ed625128c..5b816b54bd7349350c4637dd9c571629f64a7476 100644 (file)
@@ -166,6 +166,10 @@ void Game::inputText(string& str, unsigned* charselected)
     }
 
     while (SDL_PollEvent(&evenement)) {
+        if (!sdlEventProc(evenement)) {
+            tryquit = 1;
+            break;
+        }
         switch (evenement.type) {
         case SDL_TEXTEDITING:
             /* FIXME - We should handle this for complete input method support */