X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGame.cpp;h=5b816b54bd7349350c4637dd9c571629f64a7476;hb=ff29f47f799d99cec7c2a6aa2cf818da2b931fc5;hp=bc9e0328cdd81085e6bae5c96078cd46da60713f;hpb=cd043e3f9e26c2b3406b40a354c2840941e9db7f;p=lugaru.git diff --git a/Source/Game.cpp b/Source/Game.cpp index bc9e032..5b816b5 100644 --- a/Source/Game.cpp +++ b/Source/Game.cpp @@ -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 */