From 283b1d6b3ddf4fe42b6d1bfdc2f89dc9493a3b44 Mon Sep 17 00:00:00 2001 From: pelya Date: Sun, 29 Jun 2014 01:31:35 +0300 Subject: [PATCH] Inverted axis for gyroscope mouse movement, because eh, why did I think inverted axes was a nice idea anyway? --- project/jni/sdl-1.2/src/video/android/SDL_androidinput.c | 9 +++------ 1 file changed, 3 insertions(+), 6 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 290d14df0..db45612a6 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 @@ -885,12 +885,9 @@ static void ProcessMoveMouseWithGyroscope(float gx, float gy, float gz) if( hardwareMouseDetected == MOUSE_HW_INPUT_MOUSE ) // We don't need all that stuff with a proper precise input device return; - gx += gz; // Ignore Z? - gx *= -moveMouseWithGyroscopeSpeed; - gy *= moveMouseWithGyroscopeSpeed; // Screen has Y coordinate inverted - - //gx *= 10; // debug - //gy *= 10; // debug + //gx += gz; // Ignore Z + gx *= moveMouseWithGyroscopeSpeed; + gy *= -moveMouseWithGyroscopeSpeed; // Screen has Y coordinate inverted static float subpixelX = 0.0f, subpixelY = 0.0f;