summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-22 20:33:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-22 20:33:33 +0300
commit0dbe22fd77994c05fcd587363b726c22c40b1917 (patch)
treeb26f3904e1a07d2f5769cac4260adf75387f75e8 /src/client.cpp
parentce1b6c9c3c0166853089a247add9c2baa016c5f0 (diff)
downloadplus-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.gz
plus-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.bz2
plus-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.xz
plus-0dbe22fd77994c05fcd587363b726c22c40b1917.zip
add support for show/hide keyboard in SDL2 on Android.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 0b913c601..c4787d9a3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -3170,6 +3170,15 @@ void Client::setIcon()
#endif
}
+bool Client::isKeyboardVisible() const
+{
+#ifdef USE_SDL2
+ return SDL_IsTextInputActive();
+#else
+ return mKeyboardHeight > 1;
+#endif
+}
+
#ifdef USE_SDL2
void Client::handleSDL2WindowEvent(const SDL_Event &event)
{