diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-30 23:24:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-30 23:24:09 +0300 |
commit | 021e567ba44650b0ab63e7f571dc0d622edbcc6d (patch) | |
tree | 32845a9e5b32f799bc8bbe5c25a1cd83892b104b /src/actionmanager.cpp | |
parent | bb0b49f4d70f8268550068f972549ffa33e9a75b (diff) | |
download | plus-021e567ba44650b0ab63e7f571dc0d622edbcc6d.tar.gz plus-021e567ba44650b0ab63e7f571dc0d622edbcc6d.tar.bz2 plus-021e567ba44650b0ab63e7f571dc0d622edbcc6d.tar.xz plus-021e567ba44650b0ab63e7f571dc0d622edbcc6d.zip |
Add action to show onscreen keyboard.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index 92087b6db..761825f03 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -65,6 +65,10 @@ #include <guichan/actionlistener.hpp> +#ifdef ANDROID +#include <SDL_screenkeyboard.h> +#endif + #include "debug.h" #define impHandler(name) bool name(const InputEvent &event) @@ -1065,4 +1069,11 @@ impHandler0(stopSit) return false; } +impHandler0(showKeyboard) +{ +#ifdef ANDROID + SDL_ANDROID_ToggleScreenKeyboardTextInput(nullptr); +#endif +} + } |