日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class GenericJoystickController

    Inheritance
    Object
    BaseController
    GenericJoystickController
    XboxController
    Implements
    IMixedRealityController
    Inherited Members
    BaseController.DefaultInteractions
    BaseController.DefaultLeftHandedInteractions
    BaseController.DefaultRightHandedInteractions
    BaseController.Enabled
    BaseController.TrackingState
    BaseController.ControllerHandedness
    BaseController.InputSource
    BaseController.Visualizer
    BaseController.IsPositionAvailable
    BaseController.IsPositionApproximate
    BaseController.IsRotationAvailable
    BaseController.Interactions
    BaseController.AngularVelocity
    BaseController.Velocity
    BaseController.IsInPointingPose
    BaseController.SetupConfiguration(Type, InputSourceType)
    BaseController.SetupConfiguration(Type)
    BaseController.SetupDefaultInteractions(Handedness)
    BaseController.SetupDefaultInteractions()
    BaseController.AssignControllerMappings(MixedRealityInteractionMapping[])
    BaseController.TryRenderControllerModel(Type, InputSourceType)
    BaseController.TryAddControllerModelToSceneHierarchy(GameObject)
    BaseController.GetControllerVisualizationProfile()
    BaseController.IsControllerMappingEnabled()
    BaseController.GetControllerMappings()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 virtual float PointerOffsetAngle { get; protected set; }
    Property Value
    Type Description
    Single

    Methods

    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

    Implements

    IMixedRealityController
    Back to top Generated by DocFX