From 560777710d3f45e036eb245b35229658e7142304 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Fri, 18 Aug 2017 20:50:38 -0500 Subject: [PATCH] Use correct bounds for touchpad invert disabling. Allow PS to be selectable. Resolves issue #108. --- DS4Windows/DS4Forms/Options.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Forms/Options.cs b/DS4Windows/DS4Forms/Options.cs index 454edc6..d26e11f 100644 --- a/DS4Windows/DS4Forms/Options.cs +++ b/DS4Windows/DS4Forms/Options.cs @@ -1303,7 +1303,7 @@ namespace DS4Windows SATriggers[device] = string.Join(",", ints); 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) ints.Add(i); @@ -2889,7 +2889,7 @@ namespace DS4Windows List ints = new List(); List s = new List(); - for (int i = 0; i < touchDisableInvCount - 1; i++) + for (int i = 0; i < touchDisableInvCount; i++) { ToolStripMenuItem current = (ToolStripMenuItem)cMTouchDisableInvert.Items[i]; if (current.Checked)