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

OVRControllerTouch Class

Specializes OVRControllerBase specifically for a pair of touch controllers.
Overrides the configuration methods of the base type to populate the various input maps (OVRControllerBase.buttonMap, OVRControllerBase.touchMap, etc.) with the appropriate RawButton mappings for this control sceme. These mappings can be modified after construction to customize controls.

Member Functions

Basic constructor.
Initializes OVRControllerBase.controllerType to Controller.Touch, otherwise initializes all other OVRControllerBase values to their defaults.Note that, because the OVRControllerBase constructor invokes all the virtual configuration methods (ConfigureButtonMap, ConfigureTouchMap, etc.), the default values to which the various input maps will be initialized are the defaults for this type, not the base type.
Configures the OVRControllerBase.buttonMap to contain the appropriate default mappings for this control scheme.
This method is invoked automatically during initialization and need not be separately invoked except to restore the defaults from a modified state.
Configures the OVRControllerBase.touchMap to contain the appropriate default mappings for this control scheme.
This method is invoked automatically during initialization and need not be separately invoked except to restore the defaults from a modified state.
Configures the OVRControllerBase.nearTouchMap to contain the appropriate default mappings for this control scheme.
This method is invoked automatically during initialization and need not be separately invoked except to restore the defaults from a modified state.
Configures the OVRControllerBase.axis1DMap to contain the appropriate default mappings for this control scheme.
This method is invoked automatically during initialization and need not be separately invoked except to restore the defaults from a modified state.
Configures the OVRControllerBase.axis2DMap to contain the appropriate default mappings for this control scheme.
This method is invoked automatically during initialization and need not be separately invoked except to restore the defaults from a modified state.
Deprecated
Retrieves the current estimated battery power remaining for the current control scheme.
Returns
The estimated battery power remaining as a percentage of the maximum
Did you find this page helpful?
Thumbs up icon
Thumbs down icon