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/keyevent.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/keyevent.h') 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 -- cgit v1.2.3-70-g09d2