Class GenericJoystickController
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input.UnityInput
Assembly: cs.temp.dll.dll
Syntax
public class GenericJoystickController : BaseController, IMixedRealityController
Constructors
GenericJoystickController(TrackingState, Handedness, IMixedRealityInputSource, MixedRealityInteractionMapping[])
Declaration
public GenericJoystickController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
Parameters
Type | Name | Description |
---|---|---|
TrackingState | trackingState | |
Handedness | controllerHandedness | |
IMixedRealityInputSource | inputSource | |
MixedRealityInteractionMapping[] | interactions |
Fields
CurrentControllerPose
The current pose of this controller.
Declaration
protected MixedRealityPose CurrentControllerPose
Field Value
Type | Description |
---|---|
MixedRealityPose |
CurrentControllerPosition
The current position of this controller.
Declaration
protected Vector3 CurrentControllerPosition
Field Value
Type | Description |
---|---|
Vector3 |
CurrentControllerRotation
The current rotation of this controller.
Declaration
protected Quaternion CurrentControllerRotation
Field Value
Type | Description |
---|---|
Quaternion |
LastControllerPose
The previous pose of this controller.
Declaration
protected MixedRealityPose LastControllerPose
Field Value
Type | Description |
---|---|
MixedRealityPose |
Properties
PointerOffsetAngle
The pointer's offset angle.
Declaration
public float PointerOffsetAngle { get; protected set; }
Property Value
Type | Description |
---|---|
Single |
Methods
SetupDefaultInteractions(Handedness)
Assign the default interactions based on controller handedness, if necessary.
Declaration
public override void SetupDefaultInteractions(Handedness controllerHandedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | controllerHandedness |
Overrides
UpdateButtonData(MixedRealityInteractionMapping)
Update an Interaction Bool data type from a Bool input
Declaration
protected void UpdateButtonData(MixedRealityInteractionMapping interactionMapping)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityInteractionMapping | interactionMapping |
Remarks
Raises an Input System "Input Down" event when the key is down, and raises an "Input Up" when it is released (e.g. a Button) Also raises a "Pressed" event while pressed
UpdateController()
Update the controller data from Unity's Input Manager
Declaration
public virtual void UpdateController()
UpdateDualAxisData(MixedRealityInteractionMapping)
Update the Touchpad / Thumbstick input from the device (in OpenVR, touchpad and thumbstick are the same input control)
Declaration
protected void UpdateDualAxisData(MixedRealityInteractionMapping interactionMapping)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityInteractionMapping | interactionMapping |
UpdatePoseData(MixedRealityInteractionMapping)
Update Spatial Pointer Data.
Declaration
protected void UpdatePoseData(MixedRealityInteractionMapping interactionMapping)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityInteractionMapping | interactionMapping |
UpdateSingleAxisData(MixedRealityInteractionMapping)
Update an Interaction Float data type from a SingleAxis (float) input
Declaration
protected void UpdateSingleAxisData(MixedRealityInteractionMapping interactionMapping)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityInteractionMapping | interactionMapping |
Remarks
Raises a Float Input Changed event when the float data changes