Fix interpreting right stick values after leaving dead zone

This commit is contained in:
Travis Nickles 2017-03-26 18:09:27 -07:00
parent a840089d59
commit fc58383a82

View File

@ -474,7 +474,7 @@ namespace DS4Windows
dState.RX = 127; dState.RX = 127;
dState.RY = 127; dState.RY = 127;
} }
else if (rsDeadzone < 0 && rsSquared > rsDeadzoneSquared) else if (rsDeadzone > 0 && rsSquared > rsDeadzoneSquared)
{ {
double r = Math.Atan2(-(dState.RY - 127.5f), (dState.RX - 127.5f)); double r = Math.Atan2(-(dState.RY - 127.5f), (dState.RX - 127.5f));