Class XboxController
Xbox Controller using Unity Input System
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input.UnityInput
Assembly: cs.temp.dll.dll
Syntax
public class XboxController : GenericJoystickController, IMixedRealityController
Constructors
XboxController(TrackingState, Handedness, IMixedRealityInputSource, MixedRealityInteractionMapping[])
Constructor.
Declaration
public XboxController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
Parameters
Type | Name | Description |
---|---|---|
TrackingState | trackingState | |
Handedness | controllerHandedness | |
IMixedRealityInputSource | inputSource | |
MixedRealityInteractionMapping[] | interactions |
Properties
DefaultInteractions
Default interactions for Xbox Controller using Unity Input System.
Declaration
public override MixedRealityInteractionMapping[] DefaultInteractions { get; }
Property Value
Type | Description |
---|---|
MixedRealityInteractionMapping[] |
Overrides
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 |