diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-30 14:09:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-30 14:09:54 +0000 |
commit | 0876c4969290cb01af8dcc2f73218da8922c2cad (patch) | |
tree | 2ad2abc57981c983a888482112688193c0160672 /src/gui | |
parent | d977794bffbd94ab49d08eb06e691151a83bbdb3 (diff) | |
download | mana-client-0876c4969290cb01af8dcc2f73218da8922c2cad.tar.gz mana-client-0876c4969290cb01af8dcc2f73218da8922c2cad.tar.bz2 mana-client-0876c4969290cb01af8dcc2f73218da8922c2cad.tar.xz mana-client-0876c4969290cb01af8dcc2f73218da8922c2cad.zip |
Allow ESC to quit login screen and do GUI logic before drawing.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/login.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index b0ee3076..5496c01b 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -140,6 +140,13 @@ void login() { case SDL_QUIT: state = EXIT; break; + + case SDL_KEYDOWN: + if (event.key.keysym.sym == SDLK_ESCAPE) + { + state = EXIT; + } + break; } guiInput->pushInput(event); @@ -149,9 +156,6 @@ void login() { gui->logic(); gui->draw(); guiGraphics->updateScreen(); - //if (key[KEY_ESC]) { - // state = EXIT; - //} } delete dialog; |