Use correct bounds for touchpad invert disabling. Allow PS to be selectable.

Resolves issue #108.
This commit is contained in:
Travis Nickles 2017-08-18 20:50:38 -05:00
parent 55b2de6d67
commit 560777710d

View File

@ -1303,7 +1303,7 @@ namespace DS4Windows
SATriggers[device] = string.Join(",", ints); SATriggers[device] = string.Join(",", ints);
ints.Clear(); ints.Clear();
for (int i = 0, trigLen = cMTouchDisableInvert.Items.Count - 1; i < trigLen; i++) for (int i = 0, trigLen = cMTouchDisableInvert.Items.Count; i < trigLen; i++)
{ {
if (((ToolStripMenuItem)cMTouchDisableInvert.Items[i]).Checked) if (((ToolStripMenuItem)cMTouchDisableInvert.Items[i]).Checked)
ints.Add(i); ints.Add(i);
@ -2889,7 +2889,7 @@ namespace DS4Windows
List<int> ints = new List<int>(); List<int> ints = new List<int>();
List<string> s = new List<string>(); List<string> s = new List<string>();
for (int i = 0; i < touchDisableInvCount - 1; i++) for (int i = 0; i < touchDisableInvCount; i++)
{ {
ToolStripMenuItem current = (ToolStripMenuItem)cMTouchDisableInvert.Items[i]; ToolStripMenuItem current = (ToolStripMenuItem)cMTouchDisableInvert.Items[i];
if (current.Checked) if (current.Checked)