struct VirtualAxisInformation

Describes a virtual axis.

Virtual axes allow you to map custom axes without needing to know the actual physical device handling those axes.

Public

Constructors

VirtualAxisInformation

VirtualAxisInformation() = default

VirtualAxisInformation

VirtualAxisInformation(u32 type)

Constructs a new virtual axis descriptor.

type
@copydoc VirtualAxisInformation::Type

Fields

Type

u32 Type

Type of physical axis to map to.

See InputAxis type for common types, but you are not limited to those values.

DeadZone

float DeadZone

Value below which to ignore axis value and consider it 0.

Sensitivity

float Sensitivity

Higher sensitivity means the axis will more easily reach its maximum values.

Invert

bool Invert

Should the axis be inverted.

Normalize

bool Normalize

If enabled, axis values will be normalized to [-1, 1] range.

Most axes already come in normalized form and this value will not affect such axes. Some axes, like mouse movement are not normalized by default and will instead report relative movement. By enabling this you will normalize such axes to [-1, 1] range.