From 4ae7be8823b4e26b005d750810118c5d57603063 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 9 Apr 2017 00:42:53 -0700 Subject: [PATCH] Missed one minor optimization before --- DS4Windows/DS4Control/Mapping.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index fcf160b..eb69951 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -2158,7 +2158,7 @@ namespace DS4Windows public static bool getBoolMapping(int device, DS4Controls control, DS4State cState, DS4StateExposed eState, Mouse tp) { bool result = false; - bool sOff = UseSAforMouse[device]; + if (control >= DS4Controls.Square && control <= DS4Controls.Cross) { switch (control) @@ -2233,6 +2233,8 @@ namespace DS4Windows } else if (control >= DS4Controls.GyroXPos && control <= DS4Controls.GyroZNeg) { + bool sOff = UseSAforMouse[device]; + switch (control) { case DS4Controls.GyroXPos: result = !sOff ? SXSens[device] * eState.GyroX > 67 : false; break;