Reset gyro trigger items and touchpad invert items before parsing triggers

This commit is contained in:
Travis Nickles 2017-09-20 22:04:22 -05:00
parent 2e8aee10e0
commit 8f287a3714

View File

@ -614,6 +614,16 @@ namespace DS4Windows
nUDRSCurve.Value = RSCurve[device];
cBControllerInput.Checked = DS4Mapping;
for (int i = 0, arlen = cMGyroTriggers.Items.Count; i < arlen; i++)
{
((ToolStripMenuItem)cMGyroTriggers.Items[i]).Checked = false;
}
for (int i = 0, arlen = cMTouchDisableInvert.Items.Count; i < arlen; i++)
{
((ToolStripMenuItem)cMTouchDisableInvert.Items[i]).Checked = false;
}
string[] satriggers = SATriggers[device].Split(',');
List<string> s = new List<string>();
int gyroTriggerCount = cMGyroTriggers.Items.Count;