]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Game.cpp
Switch to using «The Lean Mean C++ Option Parser»
[lugaru.git] / Source / Game.cpp
index bc9e0328cdd81085e6bae5c96078cd46da60713f..5b816b54bd7349350c4637dd9c571629f64a7476 100644 (file)
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -165,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 */