mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-23 13:41:15 +01:00
Fixed sixaxis easeout quad
This commit is contained in:
parent
70909bdaa9
commit
7a35ca19cb
@ -1021,9 +1021,10 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
else if (sxOutCurveMode == 3)
|
else if (sxOutCurveMode == 3)
|
||||||
{
|
{
|
||||||
double output = temp * (temp - 2.0);
|
double abs = Math.Abs(temp);
|
||||||
result = (int)(-1.0 * output * 128.0);
|
double output = abs * (abs - 2.0);
|
||||||
dState.Motion.outputAccelX = result;
|
dState.Motion.outputAccelX = (byte)(-1.0 * output *
|
||||||
|
sign * 128.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1046,9 +1047,10 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
else if (szOutCurveMode == 3)
|
else if (szOutCurveMode == 3)
|
||||||
{
|
{
|
||||||
double output = temp * (temp - 2.0);
|
double abs = Math.Abs(temp);
|
||||||
result = (int)(-1.0 * output * 128.0);
|
double output = abs * (abs - 2.0);
|
||||||
dState.Motion.outputAccelZ = result;
|
dState.Motion.outputAccelZ = (byte)(-1.0 * output *
|
||||||
|
sign * 128.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user