Inverted axis for gyroscope mouse movement, because eh, why did I think inverted axes was a nice idea anyway?
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user