summaryrefslogtreecommitdiff
path: root/src/keyinput.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 19:12:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commit270d6d2753473955a2b691a934eb2e550d13ebc3 (patch)
tree2ba55bab0c21b1775bfcd85e80d24cbfbbe652e9 /src/keyinput.h
parentc7f5d0a71d7318ccc4c3f28ab90d688a1a0868b3 (diff)
downloadplus-270d6d2753473955a2b691a934eb2e550d13ebc3.tar.gz
plus-270d6d2753473955a2b691a934eb2e550d13ebc3.tar.bz2
plus-270d6d2753473955a2b691a934eb2e550d13ebc3.tar.xz
plus-270d6d2753473955a2b691a934eb2e550d13ebc3.zip
fix gui text input in SDL2.
copy/paste broken for SDL2.
Diffstat (limited to 'src/keyinput.h')
-rw-r--r--src/keyinput.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/keyinput.h b/src/keyinput.h
index 70aab4049..7e5de4bb3 100644
--- a/src/keyinput.h
+++ b/src/keyinput.h
@@ -40,8 +40,19 @@ class KeyInput final : public gcn::KeyInput
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 // KEYINPUT_H