|
@@ -137,7 +137,7 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeMouse)(
|
|
|
|
|
|
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativePen)(
|
|
|
JNIEnv *env, jclass jcls,
|
|
|
- jint pen_id_in, jint button, jint action, jfloat x, jfloat y, jfloat p);
|
|
|
+ jint pen_id_in, jint device_type, jint button, jint action, jfloat x, jfloat y, jfloat p);
|
|
|
|
|
|
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeAccel)(
|
|
|
JNIEnv *env, jclass jcls,
|
|
@@ -235,7 +235,7 @@ static JNINativeMethod SDLActivity_tab[] = {
|
|
|
{ "onNativePinchUpdate", "(F)V", SDL_JAVA_INTERFACE(onNativePinchUpdate) },
|
|
|
{ "onNativePinchEnd", "()V", SDL_JAVA_INTERFACE(onNativePinchEnd) },
|
|
|
{ "onNativeMouse", "(IIFFZ)V", SDL_JAVA_INTERFACE(onNativeMouse) },
|
|
|
- { "onNativePen", "(IIIFFF)V", SDL_JAVA_INTERFACE(onNativePen) },
|
|
|
+ { "onNativePen", "(IIIIFFF)V", SDL_JAVA_INTERFACE(onNativePen) },
|
|
|
{ "onNativeAccel", "(FFF)V", SDL_JAVA_INTERFACE(onNativeAccel) },
|
|
|
{ "onNativeClipboardChanged", "()V", SDL_JAVA_INTERFACE(onNativeClipboardChanged) },
|
|
|
{ "nativeLowMemory", "()V", SDL_JAVA_INTERFACE(nativeLowMemory) },
|
|
@@ -1431,11 +1431,11 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativeMouse)(
|
|
|
// Pen
|
|
|
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE(onNativePen)(
|
|
|
JNIEnv *env, jclass jcls,
|
|
|
- jint pen_id_in, jint button, jint action, jfloat x, jfloat y, jfloat p)
|
|
|
+ jint pen_id_in, jint device_type, jint button, jint action, jfloat x, jfloat y, jfloat p)
|
|
|
{
|
|
|
SDL_LockMutex(Android_ActivityMutex);
|
|
|
|
|
|
- Android_OnPen(Android_Window, pen_id_in, button, action, x, y, p);
|
|
|
+ Android_OnPen(Android_Window, pen_id_in, device_type, button, action, x, y, p);
|
|
|
|
|
|
SDL_UnlockMutex(Android_ActivityMutex);
|
|
|
}
|