summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-30 23:24:09 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-30 23:24:09 +0300
commit021e567ba44650b0ab63e7f571dc0d622edbcc6d (patch)
tree32845a9e5b32f799bc8bbe5c25a1cd83892b104b /src/actionmanager.cpp
parentbb0b49f4d70f8268550068f972549ffa33e9a75b (diff)
downloadmv-021e567ba44650b0ab63e7f571dc0d622edbcc6d.tar.gz
mv-021e567ba44650b0ab63e7f571dc0d622edbcc6d.tar.bz2
mv-021e567ba44650b0ab63e7f571dc0d622edbcc6d.tar.xz
mv-021e567ba44650b0ab63e7f571dc0d622edbcc6d.zip
Add action to show onscreen keyboard.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp11
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
+}
+
}