diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-31 22:42:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-31 22:42:51 +0300 |
commit | 69ed7e5ae640b0a2cd95d66b42b4c369fe522433 (patch) | |
tree | 3a93fbacce6140387a7b654fe6dbfe3798db64b5 /src/gui/widgets/inttextfield.cpp | |
parent | a1b0ccfbb80cf2e0dc80a52971a0f50261b8b7d6 (diff) | |
download | manaplus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.tar.gz manaplus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.tar.bz2 manaplus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.tar.xz manaplus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.zip |
Fix compilation with SDL2.
Diffstat (limited to 'src/gui/widgets/inttextfield.cpp')
-rw-r--r-- | src/gui/widgets/inttextfield.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/inttextfield.cpp b/src/gui/widgets/inttextfield.cpp index fa525f87d..5e099a4cb 100644 --- a/src/gui/widgets/inttextfield.cpp +++ b/src/gui/widgets/inttextfield.cpp @@ -23,6 +23,8 @@ #include "gui/widgets/inttextfield.h" #ifdef USE_SDL2 +#include "enums/input/keyvalue.h" + #include "gui/sdlinput.h" #endif @@ -68,7 +70,7 @@ void IntTextField::keyPressed(KeyEvent &event) #ifdef USE_SDL2 const int val = event.getKey().getValue(); - if (val != Key::TEXTINPUT) + if (val != KeyValue::TEXTINPUT) return; const std::string str = event.getText(); |