Class BaseController
Base Controller class to inherit from for all controllers.
Inheritance
BaseController
Assembly: cs.temp.dll.dll
public abstract class BaseController : IMixedRealityController
Constructors
Declaration
protected BaseController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
Parameters
Properties
Declaration
public Vector3 AngularVelocity { get; protected set; }
Property Value
The designated hand that the Input Source is managing, as defined by the SDK / Unity.
Declaration
public Handedness ControllerHandedness { get; }
Property Value
Type |
Description |
Handedness |
|
The default interactions for this controller.
Declaration
public virtual MixedRealityInteractionMapping[] DefaultInteractions { get; }
Property Value
The Default Left Handed interactions for this controller.
Declaration
public virtual MixedRealityInteractionMapping[] DefaultLeftHandedInteractions { get; }
Property Value
The Default Right Handed interactions for this controller.
Declaration
public virtual MixedRealityInteractionMapping[] DefaultRightHandedInteractions { get; }
Property Value
Is the controller enabled?
Declaration
public bool Enabled { get; set; }
Property Value
The registered Input Source for this controller
Declaration
public IMixedRealityInputSource InputSource { get; }
Property Value
The active instance of the input system.
Declaration
protected IMixedRealityInputSystem InputSystem { get; }
Property Value
Mapping definition for this controller, linking the Physical inputs to logical Input System Actions
Declaration
public MixedRealityInteractionMapping[] Interactions { get; }
Property Value
Declaration
public virtual bool IsInPointingPose { get; }
Property Value
Indicates the accuracy of the position data being reported.
Declaration
public bool IsPositionApproximate { get; protected set; }
Property Value
Indicates that this controller is currently providing position data.
Declaration
public bool IsPositionAvailable { get; protected set; }
Property Value
Indicates that this controller is currently providing rotation data.
Declaration
public bool IsRotationAvailable { get; protected set; }
Property Value
Outputs the current state of the Input Source, whether it is tracked or not. As defined by the SDK / Unity.
Declaration
public TrackingState TrackingState { get; protected set; }
Property Value
Declaration
public Vector3 Velocity { get; protected set; }
Property Value
Declaration
public IMixedRealityControllerVisualizer Visualizer { get; protected set; }
Property Value
Methods
Load the Interaction mappings for this controller from the configured Controller Mapping profile
Declaration
public void AssignControllerMappings(MixedRealityInteractionMapping[] mappings)
Parameters
Declaration
protected MixedRealityControllerMapping[] GetControllerMappings()
Returns
Declaration
protected MixedRealityControllerVisualizationProfile GetControllerVisualizationProfile()
Returns
Declaration
protected bool IsControllerMappingEnabled()
Returns
Setups up the configuration based on the Mixed Reality Controller Mapping Profile.
Declaration
public bool SetupConfiguration(Type controllerType, InputSourceType inputSourceType = InputSourceType.Controller)
Parameters
Returns
Assign the default interactions based on controller handedness if necessary.
Declaration
public abstract void SetupDefaultInteractions(Handedness controllerHandedness)
Parameters
Type |
Name |
Description |
Handedness |
controllerHandedness |
|
Declaration
protected bool TryAddControllerModelToSceneHierarchy(GameObject controllerObject)
Parameters
Type |
Name |
Description |
GameObject |
controllerObject |
|
Returns
Declaration
protected virtual bool TryRenderControllerModel(Type controllerType, InputSourceType inputSourceType)
Parameters
Returns
Implements