API reference
API reference
Select your platform
No SDKs available
No versions available

VirtualAxis1DMap Class

Characterizes the mapping between RawAxis1D data read from physical inputs and how that data should be intereted as buttons depending on specific control schemes.
OVRControllerBase instances each contain one instance of this type, the mappings within which are overridden by the ConfigureAxis1DMap implementation of the descendant type. The mappings within can also be overwritten after initialization to enable customized input mapping (such as by the user from a settings screen).

Fields

Specifies the mapping of Axis1D.None, meaning an observed input of Axis1D.None will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryIndexTrigger, meaning an observed input of Axis1D.PrimaryIndexTrigger will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryHandTrigger, meaning an observed input of Axis1D.PrimaryHandTrigger will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryIndexTrigger, meaning an observed input of Axis1D.SecondaryIndexTrigger will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryHandTrigger, meaning an observed input of Axis1D.SecondaryHandTrigger will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryIndexTriggerCurl, meaning an observed input of Axis1D.PrimaryIndexTriggerCurl will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryIndexTriggerSlide, meaning an observed input of Axis1D.PrimaryIndexTriggerSlide will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryThumbRestForce, meaning an observed input of Axis1D.PrimaryThumbRestForce will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryStylusForce, meaning an observed input of Axis1D.PrimaryStylusForce will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryIndexTriggerCurl, meaning an observed input of Axis1D.SecondaryIndexTriggerCurl will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryIndexTriggerSlide, meaning an observed input of Axis1D.SecondaryIndexTriggerSlide will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryThumbRestForce, meaning an observed input of Axis1D.SecondaryThumbRestForce will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryStylusForce, meaning an observed input of Axis1D.SecondaryStylusForce will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.PrimaryIndexTriggerForce, meaning an observed input of Axis1D.PrimaryIndexTriggerForce will be remapped by ToRawMask(Axis1D) to the value assigned here.
Specifies the mapping of Axis1D.SecondaryIndexTriggerForce, meaning an observed input of Axis1D.SecondaryIndexTriggerForce will be remapped by ToRawMask(Axis1D) to the value assigned here.

Member Functions

Remaps a Axis1D bit mask to a new RawAxis1D bit mask based on the mappings contained in this instance.
This allows provided input to be "reinterpreted" according to a specificied input mapping for a given control scheme.
Parameters
virtualMask
The original bit mask to be reinterpreted
Returns
The new RawAxis1D remapping of virtualMask
Did you find this page helpful?
Thumbs up icon
Thumbs down icon