public Axis(int number, AxisConfig axisConfig) { _axisConfig = axisConfig; _isCalibrating = false; Number = number; _value = 0; _rawValue = 0; _allowedSources = new ObservableCollection <AxisSourceType>(); _allowedSources.Add(AxisSourceType.Buttons); _maxResolution = 16; CalibrateCommand = new DelegateCommand(() => Calibrate()); }
public Axis(int number, AxisConfig axisConfig) { _axisConfig = axisConfig; _isCalibrating = false; Number = number; _value = 0; _rawValue = 0; _allowedSources = new ObservableCollection <AxisSourceType>(); _allowedSources.Add(AxisSourceType.None); _allowedSources.Add(AxisSourceType.Encoder); _maxResolution = 16; CalibrateCommand = new DelegateCommand(() => Calibrate()); SetCenterCommand = new DelegateCommand(() => SetCenter()); ResetCalibrationCommand = new DelegateCommand(() => ResetCalibration()); }