From 270d6d2753473955a2b691a934eb2e550d13ebc3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 19:12:36 +0300 Subject: fix gui text input in SDL2. copy/paste broken for SDL2. --- src/keyinput.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/keyinput.h') 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 -- cgit v1.2.3-60-g2f50