src/video/android/SDL_androidtouch.c
changeset 9449 a65088766e35
parent 9441 fc7522030729
child 9450 bcb16ffce95b
     1.1 --- a/src/video/android/SDL_androidtouch.c	Mon Mar 30 11:31:53 2015 -0700
     1.2 +++ b/src/video/android/SDL_androidtouch.c	Wed Apr 01 12:14:56 2015 -0400
     1.3 @@ -57,6 +57,9 @@
     1.4                            const char *oldValue, const char *newValue)
     1.5  {
     1.6      separate_mouse_and_touch = (newValue && (SDL_strcmp(newValue, "1") == 0));
     1.7 +    JNIEnv *env = Android_JNI_GetEnv();
     1.8 +    jfieldID fid = (*env)->GetStaticFieldID(env, mActivityClass, "mSeparateMouseAndTouch", "Z");
     1.9 +    (*env)->SetStaticBooleanField(env, mActivityClass, fid, separate_mouse_and_touch ? JNI_TRUE : JNI_FALSE);
    1.10  }
    1.11  
    1.12  void Android_InitTouch(void)