mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Tweak gyro mouse variables
This commit is contained in:
parent
6c0a1a94a9
commit
49024cddaf
@ -27,8 +27,8 @@ namespace DS4Windows
|
|||||||
deltaY = -arg.sixAxis.gyroYFull;
|
deltaY = -arg.sixAxis.gyroYFull;
|
||||||
//Console.WriteLine(arg.sixAxis.deltaX);
|
//Console.WriteLine(arg.sixAxis.deltaX);
|
||||||
|
|
||||||
double coefficient = (Global.getGyroSensitivity(deviceNumber) * 0.01) * 0.0085;
|
double coefficient = (Global.getGyroSensitivity(deviceNumber) * 0.01) * 0.0095;
|
||||||
double offset = 0.16;
|
double offset = 0.14725;
|
||||||
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…
x
Reference in New Issue
Block a user