AxisCalibration Class |
Namespace: Rewired
[SerializableAttribute] public sealed class AxisCalibration
The AxisCalibration type exposes the following members.
Name | Description | |
---|---|---|
applyRangeCalibration |
If enabled, calibratedMin, calibratedMax, and calibratedZero will be used to convert the value to a new range.
If disabled, calibratedMin, calibratedMax, and calibratedZero will have no effect on the final value.
| |
calibratedMax |
Gets or sets the maximum value. This can be used to transform the value to a new range.
| |
calibratedMin |
Gets or sets the minimum value. This can be used to transform the value to a new range.
| |
calibratedZero |
Gets or sets the zero value. This can be used to correct a non-zero resting state.
| |
deadZone |
Gets or sets the dead zone. If the Axis's absolute value is less than or equal to the dead zone, it will return 0.
| |
enabled |
Enables or disables the Axis. A disabled Axis always returns a value of 0.
| |
invert |
If true, the final value will be multiplied by -1. This can be used to correct an inverted Axis.
| |
sensitivity |
Gets or sets the sensitivity value.
| |
sensitivityCurve | ||
sensitivityType |
Determines how sensitivity will be calculated.
If sensitivityType is set to Multiplier or Power, the sensitivity property is used to calculate the value.
If sensitivityType is set to Curve, the sensitivityCurve property is used to calculate the value.
|
Name | Description | |
---|---|---|
GetCalibratedValue(Single) |
Calibrates the incoming value.
| |
GetCalibratedValue(Single, AxisRange) |
Calibrates the incoming value.
| |
GetData |
Gets a struct containing the calibration data.
| |
Reset |
Resets all calibration setings to the hardware defaults.
| |
SetData |
Sets the calibration data.
|