From 7bf43f93f58bfd7b6e3092a86193f6ddde91fbba Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 10 Jun 2017 19:58:30 -0700 Subject: [PATCH] Revert to using temporary variables for now --- DS4Windows/DS4Control/Mapping.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index 1b4a2a2..c224d54 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -142,8 +142,6 @@ namespace DS4Windows private static double horizontalRemainder = 0.0, verticalRemainder = 0.0; private const int MOUSESPEEDFACTOR = 40; private const double MOUSESTICKOFFSET = 0.03; - private static double tempMouseOffsetX = 0.0; - private static double tempMouseOffsetY = 0.0; public static void Commit(int device) { @@ -2326,6 +2324,7 @@ namespace DS4Windows DS4StateFieldMapping.ControlType controlType = DS4StateFieldMapping.mappedType[controlNum]; long timeElapsed = ctrl.DS4Controllers[device].getLastTimeElapsed(); //double mouseOffset = 0.025; + double tempMouseOffsetX = 0.0, tempMouseOffsetY = 0.0; if (controlType == DS4StateFieldMapping.ControlType.Button) {