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

VirtualTouchMap Class

Characterizes the mapping between RawTouch data read from physical inputs and how that data should be intereted as touches depending on specific control schemes.
OVRControllerBase instances each contain one instance of this type, the mappings within which are overridden by the ConfigureTouchMap 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 Touch.None, meaning an observed input of Touch.None will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.One, meaning an observed input of Touch.One will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.Two, meaning an observed input of Touch.Two will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.Three, meaning an observed input of Touch.Three will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.Four, meaning an observed input of Touch.Four will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.PrimaryIndexTrigger, meaning an observed input of Touch.PrimaryIndexTrigger will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.PrimaryThumbstick, meaning an observed input of Touch.PrimaryThumbstick will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.PrimaryThumbRest, meaning an observed input of Touch.PrimaryThumbRest will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.PrimaryTouchpad, meaning an observed input of Touch.PrimaryTouchpad will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.SecondaryIndexTrigger, meaning an observed input of Touch.SecondaryIndexTrigger will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.SecondaryThumbstick, meaning an observed input of Touch.SecondaryThumbstick will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.SecondaryThumbRest, meaning an observed input of Touch.SecondaryThumbRest will be remapped by ToRawMask(Touch) to the value assigned here.
Specifies the mapping of Touch.SecondaryTouchpad, meaning an observed input of Touch.SecondaryTouchpad will be remapped by ToRawMask(Touch) to the value assigned here.

Member Functions

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