diff options
Diffstat (limited to 'src/keyinput.h')
-rw-r--r-- | src/keyinput.h | 11 |
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 |