From 9f554cf6c1b98f65f110bc6fa6f0f2013e87556d Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 22 Jun 2017 09:02:51 -0700 Subject: [PATCH] Minor optimization --- DS4Windows/DS4Control/Mouse.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Control/Mouse.cs b/DS4Windows/DS4Control/Mouse.cs index 43a8c7a..c92a875 100644 --- a/DS4Windows/DS4Control/Mouse.cs +++ b/DS4Windows/DS4Control/Mouse.cs @@ -32,12 +32,15 @@ namespace DS4Windows wheel = new MouseWheel(deviceNum); } + bool triggeractivated = false; + bool useReverseRatchet = false; + public virtual void sixaxisMoved(object sender, SixAxisEventArgs arg) { if (Global.isUsingSAforMouse(deviceNum) && Global.getGyroSensitivity(deviceNum) > 0) { - bool triggeractivated = true; - bool useReverseRatchet = Global.getGyroTriggerTurns(deviceNum); + triggeractivated = true; + useReverseRatchet = Global.getGyroTriggerTurns(deviceNum); int i = 0; string[] ss = Global.getSATriggers(deviceNum).Split(','); if (!string.IsNullOrEmpty(ss[0]))