src/core/android/SDL_android.c
changeset 11271 ab3f2402a777
parent 11270 31ce9a8ce2bd
child 11292 df399ea01ee5
     1.1 --- a/src/core/android/SDL_android.c	Sun Aug 13 20:55:59 2017 -0700
     1.2 +++ b/src/core/android/SDL_android.c	Sun Aug 13 21:05:15 2017 -0700
     1.3 @@ -1684,6 +1684,20 @@
     1.4      Android_JNI_SendMessage(COMMAND_TEXTEDIT_HIDE, 0);
     1.5  }
     1.6  
     1.7 +SDL_bool Android_JNI_IsScreenKeyboardShown()
     1.8 +{
     1.9 +    jmethodID mid;
    1.10 +    jboolean is_shown = 0;
    1.11 +    JNIEnv *mEnv = Android_JNI_GetEnv();
    1.12 +    mid = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,"isScreenKeyboardShown","()Z");
    1.13 +    if (mid) {
    1.14 +        is_shown = (*mEnv)->CallStaticBooleanMethod(mEnv, mActivityClass, mid);
    1.15 +    }
    1.16 +
    1.17 +    return is_shown;
    1.18 +}
    1.19 +
    1.20 +
    1.21  int Android_JNI_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
    1.22  {
    1.23      JNIEnv *env;