Remove extra gyro dead zone from mapping routine

This commit is contained in:
Travis Nickles 2017-12-14 00:26:37 -06:00
parent 2844fad8ab
commit 71b91bc745

View File

@ -3085,10 +3085,10 @@ namespace DS4Windows
switch (control)
{
case DS4Controls.GyroXPos: safeTest = fieldMap.gryodirs[controlNum] > 67; break;
case DS4Controls.GyroXNeg: safeTest = fieldMap.gryodirs[controlNum] < -67; break;
case DS4Controls.GyroZPos: safeTest = fieldMap.gryodirs[controlNum] > 67; break;
case DS4Controls.GyroZNeg: safeTest = fieldMap.gryodirs[controlNum] < -67; break;
case DS4Controls.GyroXPos: safeTest = fieldMap.gryodirs[controlNum] > 0; break;
case DS4Controls.GyroXNeg: safeTest = fieldMap.gryodirs[controlNum] < -0; break;
case DS4Controls.GyroZPos: safeTest = fieldMap.gryodirs[controlNum] > 0; break;
case DS4Controls.GyroZNeg: safeTest = fieldMap.gryodirs[controlNum] < -0; break;
default: break;
}
@ -3247,10 +3247,10 @@ namespace DS4Windows
switch (control)
{
case DS4Controls.GyroXPos: safeTest = fieldMap.gryodirs[controlNum] > 67; break;
case DS4Controls.GyroXNeg: safeTest = fieldMap.gryodirs[controlNum] < -67; break;
case DS4Controls.GyroZPos: safeTest = fieldMap.gryodirs[controlNum] > 67; break;
case DS4Controls.GyroZNeg: safeTest = fieldMap.gryodirs[controlNum] < -67; break;
case DS4Controls.GyroXPos: safeTest = fieldMap.gryodirs[controlNum] > 0; break;
case DS4Controls.GyroXNeg: safeTest = fieldMap.gryodirs[controlNum] < 0; break;
case DS4Controls.GyroZPos: safeTest = fieldMap.gryodirs[controlNum] > 0; break;
case DS4Controls.GyroZNeg: safeTest = fieldMap.gryodirs[controlNum] < 0; break;
default: break;
}