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
|
if( hardwareMouseDetected == MOUSE_HW_INPUT_MOUSE ) // We don't need all that stuff with a proper precise input device
|
||||||
return;
|
return;
|
||||||
|
|
||||||
gx += gz; // Ignore Z?
|
//gx += gz; // Ignore Z
|
||||||
gx *= -moveMouseWithGyroscopeSpeed;
|
gx *= moveMouseWithGyroscopeSpeed;
|
||||||
gy *= moveMouseWithGyroscopeSpeed; // Screen has Y coordinate inverted
|
gy *= -moveMouseWithGyroscopeSpeed; // Screen has Y coordinate inverted
|
||||||
|
|
||||||
//gx *= 10; // debug
|
|
||||||
//gy *= 10; // debug
|
|
||||||
|
|
||||||
static float subpixelX = 0.0f, subpixelY = 0.0f;
|
static float subpixelX = 0.0f, subpixelY = 0.0f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user