internal void TakeSnapshot() { if (AnalogSnapshot == null) { AnalogSnapshot = new AnalogSnapshotEntry[NumUnknownAnalogs]; } for (int i = 0; i < NumUnknownAnalogs; i++) { float value = Utility.ApplySnapping(ReadRawAnalogValue(i), 0.5f); AnalogSnapshot[i].value = value; } }
public void TakeSnapshot() { if (AnalogSnapshot == null) { AnalogSnapshot = new AnalogSnapshotEntry[NumUnknownAnalogs]; } for (var i = 0; i < NumUnknownAnalogs; i++) { var analogValue = Utility.ApplySnapping(ReadRawAnalogValue(i), 0.5f); AnalogSnapshot[i].value = analogValue; } }