Gorgon
Show / Hide Table of Contents

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 Source

Axis

Property to return the identifier for the axis.

Declaration
GamingDeviceAxis Axis { get; }
Property Value
Type Description
GamingDeviceAxis
| Edit this page View Source

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.

| Edit this page View Source

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.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author