diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 19:12:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | 270d6d2753473955a2b691a934eb2e550d13ebc3 (patch) | |
tree | 2ba55bab0c21b1775bfcd85e80d24cbfbbe652e9 /src/keyevent.h | |
parent | c7f5d0a71d7318ccc4c3f28ab90d688a1a0868b3 (diff) | |
download | manaplus-270d6d2753473955a2b691a934eb2e550d13ebc3.tar.gz manaplus-270d6d2753473955a2b691a934eb2e550d13ebc3.tar.bz2 manaplus-270d6d2753473955a2b691a934eb2e550d13ebc3.tar.xz manaplus-270d6d2753473955a2b691a934eb2e550d13ebc3.zip |
fix gui text input in SDL2.
copy/paste broken for SDL2.
Diffstat (limited to 'src/keyevent.h')
-rw-r--r-- | src/keyevent.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/keyevent.h b/src/keyevent.h index 455717f85..081ea3d3c 100644 --- a/src/keyevent.h +++ b/src/keyevent.h @@ -49,8 +49,19 @@ class KeyEvent final : public gcn::KeyEvent int getActionId() const A_WARN_UNUSED { return mActionId; } +#ifdef USE_SDL2 + void setText(const std::string &text) + { mText = text; } + + std::string getText() const + { return mText; } +#endif + protected: int mActionId; +#ifdef USE_SDL2 + std::string mText; +#endif }; #endif // KEYEVENT_H |