Lower gyro mouse offset

This commit is contained in:
Travis Nickles 2017-06-27 08:19:55 -07:00
parent 5f907de036
commit 86816db41a

View File

@ -28,7 +28,7 @@ namespace DS4Windows
//Console.WriteLine(arg.sixAxis.deltaX); //Console.WriteLine(arg.sixAxis.deltaX);
double coefficient = (Global.getGyroSensitivity(deviceNumber) * 0.01) * 0.0095; double coefficient = (Global.getGyroSensitivity(deviceNumber) * 0.01) * 0.0095;
double offset = 0.14725; double offset = 0.1463;
double tempAngle = System.Math.Atan2(-deltaY, deltaX); double tempAngle = System.Math.Atan2(-deltaY, deltaX);
double normX = System.Math.Abs(System.Math.Cos(tempAngle)); double normX = System.Math.Abs(System.Math.Cos(tempAngle));
double normY = System.Math.Abs(System.Math.Sin(tempAngle)); double normY = System.Math.Abs(System.Math.Sin(tempAngle));