mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Minor tweak
This commit is contained in:
parent
a1a54c8429
commit
cfbf7afe22
@ -154,7 +154,6 @@ namespace DS4Windows
|
|||||||
static bool tempBool = false;
|
static bool tempBool = false;
|
||||||
private static double[] tempDoubleArray = new double[4] { 0.0, 0.0, 0.0, 0.0 };
|
private static double[] tempDoubleArray = new double[4] { 0.0, 0.0, 0.0, 0.0 };
|
||||||
private static int[] tempIntArray = new int[4] { 0, 0, 0, 0 };
|
private static int[] tempIntArray = new int[4] { 0, 0, 0, 0 };
|
||||||
private static int tempInt = 0;
|
|
||||||
|
|
||||||
// Special macros
|
// Special macros
|
||||||
static bool altTabDone = true;
|
static bool altTabDone = true;
|
||||||
@ -926,6 +925,7 @@ namespace DS4Windows
|
|||||||
double szAntiDead = getSZAntiDeadzone(device);
|
double szAntiDead = getSZAntiDeadzone(device);
|
||||||
double sxsens = getSXSens(device);
|
double sxsens = getSXSens(device);
|
||||||
double szsens = getSZSens(device);
|
double szsens = getSZSens(device);
|
||||||
|
int result = 0;
|
||||||
|
|
||||||
int gyroX = cState.Motion.accelX, gyroZ = cState.Motion.accelZ;
|
int gyroX = cState.Motion.accelX, gyroZ = cState.Motion.accelZ;
|
||||||
int absx = Math.Abs(gyroX), absz = Math.Abs(gyroZ);
|
int absx = Math.Abs(gyroX), absz = Math.Abs(gyroZ);
|
||||||
@ -978,12 +978,14 @@ namespace DS4Windows
|
|||||||
if (sxOutCurveMode == 1)
|
if (sxOutCurveMode == 1)
|
||||||
{
|
{
|
||||||
double output = temp * temp;
|
double output = temp * temp;
|
||||||
dState.Motion.outputAccelX = tempInt = (int)(output * sign * 128.0);
|
result = (int)(output * sign * 128.0);
|
||||||
|
dState.Motion.outputAccelX = result;
|
||||||
}
|
}
|
||||||
else if (sxOutCurveMode == 2)
|
else if (sxOutCurveMode == 2)
|
||||||
{
|
{
|
||||||
double output = temp * temp * temp;
|
double output = temp * temp * temp;
|
||||||
dState.Motion.outputAccelX = tempInt = (int)(output * 128.0);
|
result = (int)(output * 128.0);
|
||||||
|
dState.Motion.outputAccelX = result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -995,12 +997,14 @@ namespace DS4Windows
|
|||||||
if (szOutCurveMode == 1)
|
if (szOutCurveMode == 1)
|
||||||
{
|
{
|
||||||
double output = temp * temp;
|
double output = temp * temp;
|
||||||
dState.Motion.outputAccelZ = tempInt = (int)(output * sign * 128.0);
|
result = (int)(output * sign * 128.0);
|
||||||
|
dState.Motion.outputAccelZ = result;
|
||||||
}
|
}
|
||||||
else if (szOutCurveMode == 2)
|
else if (szOutCurveMode == 2)
|
||||||
{
|
{
|
||||||
double output = temp * temp * temp;
|
double output = temp * temp * temp;
|
||||||
dState.Motion.outputAccelZ = tempInt = (int)(output * 128.0);
|
result = (int)(output * 128.0);
|
||||||
|
dState.Motion.outputAccelZ = result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user