diff options
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 |