Class GenericJoystickController
Inheritance
GenericJoystickController
Assembly: cs.temp.dll.dll
public class GenericJoystickController : BaseController, IMixedRealityController
Constructors
Declaration
public GenericJoystickController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
Parameters
Declaration
public GenericJoystickController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSourceDefinition definition, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
Parameters
Fields
The current pose of this controller.
Declaration
protected MixedRealityPose CurrentControllerPose
Field Value
Type |
Description |
MixedRealityPose |
|
The current position of this controller.
Declaration
protected Vector3 CurrentControllerPosition
Field Value
The current rotation of this controller.
Declaration
protected Quaternion CurrentControllerRotation
Field Value
Type |
Description |
Quaternion |
|
The previous pose of this controller.
Declaration
protected MixedRealityPose LastControllerPose
Field Value
Type |
Description |
MixedRealityPose |
|
Properties
The default interactions for this controller.
Declaration
public override MixedRealityInteractionMapping[] DefaultInteractions { get; }
Property Value
Overrides
The default left-handed interactions for this controller.
Declaration
public override MixedRealityInteractionMapping[] DefaultLeftHandedInteractions { get; }
Property Value
Overrides
The default right-handed interactions for this controller.
Declaration
public override MixedRealityInteractionMapping[] DefaultRightHandedInteractions { get; }
Property Value
Overrides
Declaration
protected virtual MixedRealityInteractionMappingLegacyInput[] LeftHandedLegacyInputSupport { get; }
Property Value
Declaration
protected virtual MixedRealityInteractionMappingLegacyInput[] LegacyInputSupport { get; }
Property Value
The pointer's offset angle.
Declaration
public virtual float PointerOffsetAngle { get; protected set; }
Property Value
Declaration
protected virtual MixedRealityInteractionMappingLegacyInput[] RightHandedLegacyInputSupport { get; }
Property Value
Methods
Update an Interaction Bool data type from a Bool input
Declaration
protected void UpdateButtonData(MixedRealityInteractionMapping interactionMapping)
Parameters
Update the controller data from Unity's Input Manager
Declaration
public virtual void UpdateController()
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
Update Spatial Pointer Data.
Declaration
protected void UpdatePoseData(MixedRealityInteractionMapping interactionMapping)
Parameters
Update an Interaction Float data type from a SingleAxis (float) input
Declaration
protected void UpdateSingleAxisData(MixedRealityInteractionMapping interactionMapping)
Parameters
Implements