BaseController Class

Definition

Base Controller class to inherit from for all controllers.

public ref class BaseController abstract : Microsoft::MixedReality::Toolkit::Input::IMixedRealityController
public abstract class BaseController : Microsoft.MixedReality.Toolkit.Input.IMixedRealityController
type BaseController = class
    interface IMixedRealityController
Public MustInherit Class BaseController
Implements IMixedRealityController
Inheritance
BaseController
Derived
Implements

Constructors

BaseController(TrackingState, Handedness, IMixedRealityInputSource, MixedRealityInteractionMapping[], IMixedRealityInputSourceDefinition)

Constructor.

BaseController(TrackingState, Handedness, IMixedRealityInputSource, MixedRealityInteractionMapping[])

Constructor.

Properties

AngularVelocity
ControllerHandedness

The designated hand that the Input Source is managing, as defined by the SDK / Unity.

DefaultInteractions

The default interactions for this controller.

DefaultLeftHandedInteractions

The default left-handed interactions for this controller.

DefaultRightHandedInteractions

The default right-handed interactions for this controller.

Definition

Represents the archetypal definition of what this controller supports and can perform.

Enabled

Is the controller enabled?

InputSource

The registered Input Source for this controller

Interactions

Mapping definition for this controller, linking the Physical inputs to logical Input System Actions

IsInPointingPose

Some controllers such as articulated should only be able to invoke pointing/distant interactions in certain poses.

IsPositionApproximate

Indicates the accuracy of the position data being reported.

IsPositionAvailable

Indicates that this controller is currently providing position data.

IsRotationAvailable

Indicates that this controller is currently providing rotation data.

TrackingState

Outputs the current state of the Input Source, whether it is tracked or not. As defined by the SDK / Unity.

Velocity
Visualizer

Methods

AssignControllerMappings(MixedRealityInteractionMapping[])

Load the Interaction mappings for this controller from the configured Controller Mapping profile

GetControllerMappings()
GetControllerVisualizationProfile()
IsControllerMappingEnabled()
SetupConfiguration(Type, InputSourceType)
Obsolete.

Sets up the configuration based on the Mixed Reality Controller Mapping Profile.

SetupConfiguration(Type)
Obsolete.

Sets up the configuration based on the Mixed Reality Controller Mapping Profile.

SetupDefaultInteractions()

Assign the default interactions based on this controller's handedness, if necessary.

SetupDefaultInteractions(Handedness)
Obsolete.

Assign the default interactions based on controller handedness, if necessary.

TryAddControllerModelToSceneHierarchy(GameObject)
TryRenderControllerModel(Type, InputSourceType)

Try to render a controller model for this controller from the visualization profile.

Applies to