mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-25 22:41:16 +01:00
Tweak dead zone calculation
This commit is contained in:
parent
768e967e04
commit
9cfae83569
@ -468,8 +468,8 @@ namespace DS4Windows
|
|||||||
double tempOutputX = 0.0, tempOutputY = 0.0;
|
double tempOutputX = 0.0, tempOutputY = 0.0;
|
||||||
if (lsDeadzone > 0)
|
if (lsDeadzone > 0)
|
||||||
{
|
{
|
||||||
tempLsXDead = Math.Cos(r) * (lsDeadzone);
|
tempLsXDead = Math.Abs(Math.Cos(r)) * (lsDeadzone / 127.0) * maxXValue;
|
||||||
tempLsYDead = Math.Sin(r) * (-lsDeadzone);
|
tempLsYDead = Math.Abs(Math.Sin(r)) * (lsDeadzone / 127.0) * maxYValue;
|
||||||
|
|
||||||
if (lsSquared > lsDeadzoneSquared)
|
if (lsSquared > lsDeadzoneSquared)
|
||||||
{
|
{
|
||||||
@ -526,8 +526,8 @@ namespace DS4Windows
|
|||||||
double tempOutputX = 0.0, tempOutputY = 0.0;
|
double tempOutputX = 0.0, tempOutputY = 0.0;
|
||||||
if (rsDeadzone > 0)
|
if (rsDeadzone > 0)
|
||||||
{
|
{
|
||||||
tempRsXDead = Math.Cos(r) * (rsDeadzone);
|
tempRsXDead = Math.Abs(Math.Cos(r)) * (rsDeadzone / 127.0) * maxXValue;
|
||||||
tempRsYDead = Math.Sin(r) * (-rsDeadzone);
|
tempRsYDead = Math.Abs(Math.Sin(r)) * (rsDeadzone / 127.0) * maxYValue;
|
||||||
|
|
||||||
if (rsSquared > rsDeadzoneSquared)
|
if (rsSquared > rsDeadzoneSquared)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user