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

VirtualNearTouchMap Class

Characterizes the mapping between RawNearTouch 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 ConfigureNearTouchMap 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 NearTouch.None, meaning an observed input of NearTouch.None will be remapped by ToRawMask(NearTouch) to the value assigned here.
Specifies the mapping of NearTouch.PrimaryIndexTrigger, meaning an observed input of NearTouch.PrimaryIndexTrigger will be remapped by ToRawMask(NearTouch) to the value assigned here.
Specifies the mapping of NearTouch.PrimaryThumbButtons, meaning an observed input of NearTouch.PrimaryThumbButtons will be remapped by ToRawMask(NearTouch) to the value assigned here.
Specifies the mapping of NearTouch.SecondaryIndexTrigger, meaning an observed input of NearTouch.SecondaryIndexTrigger will be remapped by ToRawMask(NearTouch) to the value assigned here.
Specifies the mapping of NearTouch.SecondaryThumbButtons, meaning an observed input of NearTouch.SecondaryThumbButtons will be remapped by ToRawMask(NearTouch) to the value assigned here.

Member Functions

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