Click or drag to resize
DigitalRuneConfigurableInputCommandSensitivity Property
Gets or sets the sensitivity that is used for analog input.

Namespace: DigitalRune.Game.Input
Assembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax
public float Sensitivity { get; set; }

Property Value

Type: Single
The sensitivity for analog input in the range ]0, ∞]. The default value is 1.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Sensitivity is negative or equal to 0.
Remarks

A Sensitivity of 1 creates a linear response curve (default). A value of 1/2 creates a quadratic response curve. A value of 1/3 creates a cubic response curve. Etc.

The Sensitivity does not change the minimal and maximal values of the Value. But they change how the Value changes in response to analog input. If a thumb stick is pressed half way and the Sensitivity is 1, the output Value is 0.5. If the Sensitivity is less than 1, then the Value would be less than 0.5f. If the Sensitivity is greater than 1, then the Value would be greater than 0.5f. In other words: If the Sensitivity is high, then a small thumb stick movement has a larger reaction.

See Also