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

VirtualButtonMap Class

Characterizes the mapping between RawButton 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 ConfigureButtonMap 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 Button.None, meaning an observed input of Button.None will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.One, meaning an observed input of Button.One will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Two, meaning an observed input of Button.Two will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Three, meaning an observed input of Button.Three will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Four, meaning an observed input of Button.Four will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Start, meaning an observed input of Button.Start will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Back, meaning an observed input of Button.Back will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryShoulder, meaning an observed input of Button.PrimaryShoulder will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryIndexTrigger, meaning an observed input of Button.PrimaryIndexTrigger will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryHandTrigger, meaning an observed input of Button.PrimaryHandTrigger will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryThumbstick, meaning an observed input of Button.PrimaryThumbstick will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryThumbstickUp, meaning an observed input of Button.PrimaryThumbstickUp will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryThumbstickDown, meaning an observed input of Button.PrimaryThumbstickDown will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryThumbstickLeft, meaning an observed input of Button.PrimaryThumbstickLeft will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryThumbstickRight, meaning an observed input of Button.PrimaryThumbstickRight will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.PrimaryTouchpad, meaning an observed input of Button.PrimaryTouchpad will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryShoulder, meaning an observed input of Button.SecondaryShoulder will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryIndexTrigger, meaning an observed input of Button.SecondaryIndexTrigger will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryHandTrigger, meaning an observed input of Button.SecondaryHandTrigger will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryThumbstick, meaning an observed input of Button.SecondaryThumbstick will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryThumbstickUp, meaning an observed input of Button.SecondaryThumbstickUp will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryThumbstickDown, meaning an observed input of Button.SecondaryThumbstickDown will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryThumbstickLeft, meaning an observed input of Button.SecondaryThumbstickLeft will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryThumbstickRight, meaning an observed input of Button.SecondaryThumbstickRight will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.SecondaryTouchpad, meaning an observed input of Button.SecondaryTouchpad will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.DpadUp, meaning an observed input of Button.DpadUp will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.DpadDown, meaning an observed input of Button.DpadDown will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.DpadLeft, meaning an observed input of Button.DpadLeft will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.DpadRight, meaning an observed input of Button.DpadRight will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Up, meaning an observed input of Button.Up will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Down, meaning an observed input of Button.Down will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Left, meaning an observed input of Button.Left will be remapped by ToRawMask(Button) to the value assigned here.
Specifies the mapping of Button.Right, meaning an observed input of Button.Right will be remapped by ToRawMask(Button) to the value assigned here.

Member Functions

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