diff options
author | Ira Rice <irarice@gmail.com> | 2008-09-25 22:53:40 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-09-25 22:53:40 +0000 |
commit | a14a4fa368e91956a411337bf333451abd6b326a (patch) | |
tree | 6811622e2056b5e400573071097060e87f424fe8 /src | |
parent | 5bf2acfff7bef677790f435f5b8509453d4e55ca (diff) | |
download | mana-a14a4fa368e91956a411337bf333451abd6b326a.tar.gz mana-a14a4fa368e91956a411337bf333451abd6b326a.tar.bz2 mana-a14a4fa368e91956a411337bf333451abd6b326a.tar.xz mana-a14a4fa368e91956a411337bf333451abd6b326a.zip |
Changed textfield behavior cause a windows build didn't like it.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/textfield.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/textfield.cpp b/src/gui/textfield.cpp index 21c3adbc..b128701b 100644 --- a/src/gui/textfield.cpp +++ b/src/gui/textfield.cpp @@ -24,6 +24,7 @@ #include <algorithm> #include <guichan/font.hpp> +#include <guichan/sdl/sdlinput.hpp> #include "textfield.h" @@ -135,9 +136,9 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent) break; } int value = key.getValue(); - if (value == gcn::Key::LEFT || value == gcn::Key::RIGHT || - value == gcn::Key::HOME || value == gcn::Key::END || - value == gcn::Key::BACKSPACE || value == gcn::Key::DELETE) + if (value == SDLK_LEFT || value == SDLK_RIGHT || + value == SDLK_HOME || value == SDLK_END || + value == SDLK_BACKSPACE || value == SDLK_DELETE) { break; } |