src/core/android/SDL_android.c
changeset 9438 fff5af5de6dd
parent 9322 a45110bca65e
child 9439 0d01b53cdbea
     1.1 --- a/src/core/android/SDL_android.c	Wed Mar 25 10:19:10 2015 -0400
     1.2 +++ b/src/core/android/SDL_android.c	Tue Mar 24 20:45:29 2015 +0100
     1.3 @@ -32,6 +32,7 @@
     1.4  
     1.5  #include "../../events/SDL_events_c.h"
     1.6  #include "../../video/android/SDL_androidkeyboard.h"
     1.7 +#include "../../video/android/SDL_androidmouse.h"
     1.8  #include "../../video/android/SDL_androidtouch.h"
     1.9  #include "../../video/android/SDL_androidvideo.h"
    1.10  #include "../../video/android/SDL_androidwindow.h"
    1.11 @@ -293,6 +294,22 @@
    1.12      Android_OnTouch(touch_device_id_in, pointer_finger_id_in, action, x, y, p);
    1.13  }
    1.14  
    1.15 +/* Mouse */
    1.16 +JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeMouse(
    1.17 +                                    JNIEnv* env, jclass jcls,
    1.18 +                                    jint button, jint action, jfloat x, jfloat y)
    1.19 +{
    1.20 +    Android_OnMouse(button, action, x, y);
    1.21 +}
    1.22 +
    1.23 +/* Mouse */
    1.24 +JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeMouse(
    1.25 +                                    JNIEnv* env, jclass jcls,
    1.26 +                                    jint button, jint action, jfloat x, jfloat y)
    1.27 +{
    1.28 +    Android_OnMouse(button, action, x, y);
    1.29 +}
    1.30 +
    1.31  /* Accelerometer */
    1.32  JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeAccel(
    1.33                                      JNIEnv* env, jclass jcls,