From ca601438d739d3e0595d676b6bf6af47ee4f34f8 Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Thu, 22 Jun 2017 23:05:28 +0300 Subject: [PATCH] SDL: Reverted centering mouse cursor when sending pinch-zoom gesture --- project/jni/sdl-1.2/src/video/android/SDL_androidinput.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c b/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c index 264ae5757..995cf24b1 100644 --- a/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c +++ b/project/jni/sdl-1.2/src/video/android/SDL_androidinput.c @@ -356,7 +356,6 @@ static void ProcessMultitouchGesture( int x, int y, int action, int pointerId ) { multitouchGestureHappened = 1; multitouchGestureDist += distMaxDiff; - SDL_ANDROID_MainThreadPushMouseMotion( middleX, middleY ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_PRESSED, multitouchGestureKeycode[0], 0 ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_RELEASED, multitouchGestureKeycode[0], 0 ); } @@ -364,7 +363,6 @@ static void ProcessMultitouchGesture( int x, int y, int action, int pointerId ) { multitouchGestureHappened = 1; multitouchGestureDist -= distMaxDiff; - SDL_ANDROID_MainThreadPushMouseMotion( middleX, middleY ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_PRESSED, multitouchGestureKeycode[1], 0 ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_RELEASED, multitouchGestureKeycode[1], 0 ); } @@ -380,7 +378,6 @@ static void ProcessMultitouchGesture( int x, int y, int action, int pointerId ) { multitouchGestureHappened = 1; multitouchGestureAngle = angle; - SDL_ANDROID_MainThreadPushMouseMotion( middleX, middleY ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_PRESSED, multitouchGestureKeycode[2], 0 ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_RELEASED, multitouchGestureKeycode[2], 0 ); } @@ -388,7 +385,6 @@ static void ProcessMultitouchGesture( int x, int y, int action, int pointerId ) { multitouchGestureHappened = 1; multitouchGestureAngle = angle; - SDL_ANDROID_MainThreadPushMouseMotion( middleX, middleY ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_PRESSED, multitouchGestureKeycode[3], 0 ); SDL_ANDROID_MainThreadPushKeyboardKey( SDL_RELEASED, multitouchGestureKeycode[3], 0 ); }