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

VirtualAxis2DMap Class

Characterizes the mapping between RawAxis2D 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 ConfigureAxis2DMap 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 Axis2D.None, meaning an observed input of Axis2D.None will be remapped by ToRawMask(Axis2D) to the value assigned here.
Specifies the mapping of Axis2D.PrimaryThumbstick, meaning an observed input of Axis2D.PrimaryThumbstick will be remapped by ToRawMask(Axis2D) to the value assigned here.
Specifies the mapping of Axis2D.PrimaryTouchpad, meaning an observed input of Axis2D.PrimaryTouchpad will be remapped by ToRawMask(Axis2D) to the value assigned here.
Specifies the mapping of Axis2D.SecondaryThumbstick, meaning an observed input of Axis2D.SecondaryThumbstick will be remapped by ToRawMask(Axis2D) to the value assigned here.
Specifies the mapping of Axis2D.SecondaryTouchpad, meaning an observed input of Axis2D.SecondaryTouchpad will be remapped by ToRawMask(Axis2D) to the value assigned here.

Member Functions

Remaps a Axis2D bit mask to a new RawAxis2D 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 RawAxis2D remapping of virtualMask
Did you find this page helpful?
Thumbs up icon
Thumbs down icon