public void Calibrate(AnalogStickAxes <byte> raw, AnalogStickAxes <float> calibrating)
 {
     calibrating.X = CalibrateValue(raw.X, XMin, XMid, XMax);
     calibrating.Y = CalibrateValue(raw.Y, YMin, YMid, YMax);
 }
Exemple #2
0
 public AnalogStick(AnalogStickCalibration calibration)
 {
     _Calibration = calibration;
     _Raw         = new AnalogStickAxes <byte>();
     _Calibrated  = new AnalogStickAxes <float>();
 }