mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +01:00
Lower gyro mouse offset
This commit is contained in:
parent
5f907de036
commit
86816db41a
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user