Added unchecked region

This commit is contained in:
Travis Nickles 2019-02-15 21:58:00 -06:00
parent 5b19dc76cd
commit 50109282f4

View File

@ -1512,12 +1512,16 @@ namespace DS4Windows
if (controlType == DS4StateFieldMapping.ControlType.AxisDir) if (controlType == DS4StateFieldMapping.ControlType.AxisDir)
//if (dcs.control > DS4Controls.None && dcs.control < DS4Controls.L1) //if (dcs.control > DS4Controls.None && dcs.control < DS4Controls.L1)
{ {
//int current = (int)dcs.control;
//outputfieldMapping.axisdirs[current] = fieldMapping.axisdirs[current];
customMapQueue[device].Enqueue(new ControlToXInput(dcs.control, dcs.control)); customMapQueue[device].Enqueue(new ControlToXInput(dcs.control, dcs.control));
} }
} }
} }
Queue<ControlToXInput> tempControl = customMapQueue[device]; Queue<ControlToXInput> tempControl = customMapQueue[device];
unchecked
{
for (int i = 0, len = tempControl.Count; i < len; i++) for (int i = 0, len = tempControl.Count; i < len; i++)
//while(tempControl.Any()) //while(tempControl.Any())
{ {
@ -1554,6 +1558,7 @@ namespace DS4Windows
} }
} }
} }
}
outputfieldMapping.populateState(MappedState); outputfieldMapping.populateState(MappedState);