android/testproject/jni/app-android.cpp
changeset 4714 0f05f2f16fad
parent 4713 ba38983b10c2
child 4715 9bb98766eed0
     1.1 --- a/android/testproject/jni/app-android.cpp	Wed Jul 07 00:43:23 2010 +1200
     1.2 +++ b/android/testproject/jni/app-android.cpp	Tue Jul 27 09:58:17 2010 +0200
     1.3 @@ -83,14 +83,23 @@
     1.4                 jobject obj, jint keycode){
     1.5      
     1.6      int r = Android_OnKeyDown(keycode);
     1.7 -    __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: native key down %d, %d\n", keycode, r);
     1.8 +    __android_log_print(ANDROID_LOG_INFO, "SDL", 
     1.9 +                        "SDL: native key down %d, %d\n", keycode, r);
    1.10  }
    1.11  
    1.12  extern "C" void Java_org_libsdl_android_SDLActivity_onNativeKeyUp(JNIEnv*  env, 
    1.13                 jobject obj, jint keycode){
    1.14      
    1.15      int r = Android_OnKeyUp(keycode);
    1.16 -    __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: native key up %d, %d\n", keycode, r);
    1.17 +    __android_log_print(ANDROID_LOG_INFO, "SDL", 
    1.18 +                        "SDL: native key up %d, %d\n", keycode, r);
    1.19 +}
    1.20 +
    1.21 +extern "C" void Java_org_libsdl_android_SDLActivity_onNativeTouch(JNIEnv*  env, 
    1.22 +               jobject obj, jint action, jfloat x, jfloat y, jfloat p){
    1.23 +    __android_log_print(ANDROID_LOG_INFO, "SDL", 
    1.24 +                        "SDL: native touch event %d @ %f/%f, pressure %f\n", 
    1.25 +                        action, x, y, p);
    1.26  }
    1.27  
    1.28