diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-22 20:33:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-22 20:33:33 +0300 |
commit | 0dbe22fd77994c05fcd587363b726c22c40b1917 (patch) | |
tree | b26f3904e1a07d2f5769cac4260adf75387f75e8 /src/client.cpp | |
parent | ce1b6c9c3c0166853089a247add9c2baa016c5f0 (diff) | |
download | mv-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.gz mv-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.bz2 mv-0dbe22fd77994c05fcd587363b726c22c40b1917.tar.xz mv-0dbe22fd77994c05fcd587363b726c22c40b1917.zip |
add support for show/hide keyboard in SDL2 on Android.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 9 |
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) { |