Interface IGorgonGamingDeviceAxis
Defines an axis for a gaming device.
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public interface IGorgonGamingDeviceAxis
Properties
| Edit this page View SourceAxis
Property to return the identifier for the axis.
Declaration
GamingDeviceAxis Axis { get; }
Property Value
Type | Description |
---|---|
GamingDeviceAxis |
DeadZone
Property to set or return the dead zone value for the axis.
Declaration
GorgonRange DeadZone { get; set; }
Property Value
Type | Description |
---|---|
GorgonRange |
Remarks
This will apply a dead zone area for the axis. A dead zone is used to limit the sensitivity of a gaming device to ensure that the device does not register movement until a certain threshold is exceeded. This is necessary as a slight movement of the gaming device may cause undesired actions.
This value should be within the axis range returned by the Range property. If it exceeds the axis range, then no movement will be registered.
If the Value for the axis position is within this dead zone range, the Value property will return its DefaultValue until it exceeds the dead zone threshold.
Specify Empty to disable the dead zone on the axis.
Value
Property to set or return the value representing the position of a gaming device axis.
Declaration
int Value { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
When a DeadZone is applied to the axis, the value will remain at its DefaultValue until it exits the dead zone range.