Class GenericXRSDKController
Inheritance
GenericXRSDKController
Assembly: cs.temp.dll.dll
public class GenericXRSDKController : BaseController
Constructors
Declaration
public GenericXRSDKController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
Parameters
Type |
Name |
Description |
TrackingState |
trackingState |
|
Handedness |
controllerHandedness |
|
IMixedRealityInputSource |
inputSource |
|
MixedRealityInteractionMapping[] |
interactions |
|
Fields
The current pose of this XR SDK controller.
Declaration
protected MixedRealityPose CurrentControllerPose
Field Value
Type |
Description |
MixedRealityPose |
|
The current position of this XR SDK controller.
Declaration
protected Vector3 CurrentControllerPosition
Field Value
The current rotation of this XR SDK controller.
Declaration
protected Quaternion CurrentControllerRotation
Field Value
Type |
Description |
Quaternion |
|
The previous pose of this XR SDK controller.
Declaration
protected MixedRealityPose LastControllerPose
Field Value
Type |
Description |
MixedRealityPose |
|
Properties
Declaration
public override MixedRealityInteractionMapping[] DefaultLeftHandedInteractions { get; }
Property Value
Type |
Description |
MixedRealityInteractionMapping[] |
|
Declaration
public override MixedRealityInteractionMapping[] DefaultRightHandedInteractions { get; }
Property Value
Type |
Description |
MixedRealityInteractionMapping[] |
|
Methods
Update an interaction bool data type from a bool input
Declaration
protected virtual void UpdateButtonData(MixedRealityInteractionMapping interactionMapping, InputDevice inputDevice)
Parameters
Type |
Name |
Description |
MixedRealityInteractionMapping |
interactionMapping |
|
InputDevice |
inputDevice |
|
Update the controller data from XR SDK.
Declaration
public virtual void UpdateController(InputDevice inputDevice)
Parameters
Type |
Name |
Description |
InputDevice |
inputDevice |
|
Update the touchpad / thumbstick input from the device
Declaration
protected virtual void UpdateDualAxisData(MixedRealityInteractionMapping interactionMapping, InputDevice inputDevice)
Parameters
Type |
Name |
Description |
MixedRealityInteractionMapping |
interactionMapping |
|
InputDevice |
inputDevice |
|
Update spatial grip data.
Declaration
protected virtual void UpdatePoseData(MixedRealityInteractionMapping interactionMapping, InputDevice inputDevice)
Parameters
Type |
Name |
Description |
MixedRealityInteractionMapping |
interactionMapping |
|
InputDevice |
inputDevice |
|
Update an interaction float data type from a SingleAxis (float) input
Declaration
protected virtual void UpdateSingleAxisData(MixedRealityInteractionMapping interactionMapping, InputDevice inputDevice)
Parameters
Type |
Name |
Description |
MixedRealityInteractionMapping |
interactionMapping |
|
InputDevice |
inputDevice |
|