Inverted axis for gyroscope mouse movement, because eh, why did I think inverted axes was a nice idea anyway?

This commit is contained in:
pelya
2014-06-29 01:31:35 +03:00
parent 63c44be299
commit 283b1d6b3d

View File

@@ -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;