Minor optimization

This commit is contained in:
Travis Nickles 2017-06-22 09:02:51 -07:00
parent 35031f5c5f
commit 9f554cf6c1

View File

@ -32,12 +32,15 @@ namespace DS4Windows
wheel = new MouseWheel(deviceNum); wheel = new MouseWheel(deviceNum);
} }
bool triggeractivated = false;
bool useReverseRatchet = false;
public virtual void sixaxisMoved(object sender, SixAxisEventArgs arg) public virtual void sixaxisMoved(object sender, SixAxisEventArgs arg)
{ {
if (Global.isUsingSAforMouse(deviceNum) && Global.getGyroSensitivity(deviceNum) > 0) if (Global.isUsingSAforMouse(deviceNum) && Global.getGyroSensitivity(deviceNum) > 0)
{ {
bool triggeractivated = true; triggeractivated = true;
bool useReverseRatchet = Global.getGyroTriggerTurns(deviceNum); useReverseRatchet = Global.getGyroTriggerTurns(deviceNum);
int i = 0; int i = 0;
string[] ss = Global.getSATriggers(deviceNum).Split(','); string[] ss = Global.getSATriggers(deviceNum).Split(',');
if (!string.IsNullOrEmpty(ss[0])) if (!string.IsNullOrEmpty(ss[0]))