From fc58383a821a182fef6bc11e309b7c0e16286e36 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 26 Mar 2017 18:09:27 -0700 Subject: [PATCH] Fix interpreting right stick values after leaving dead zone --- DS4Windows/DS4Control/Mapping.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index 4febb4f..e4feaea 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -474,7 +474,7 @@ namespace DS4Windows dState.RX = 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));