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

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

    Show / Hide Table of Contents

    Class BaseInputEventData

    Base class of all input events.

    Inheritance
    Object
    BaseInputEventData
    DictationEventData
    InputEventData
    SourceStateEventData
    SpeechEventData
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class BaseInputEventData : BaseEventData

    Constructors

    BaseInputEventData(EventSystem)

    Constructor.

    Declaration
    protected BaseInputEventData(EventSystem eventSystem)
    Parameters
    Type Name Description
    EventSystem eventSystem

    Typically will be EventSystems.EventSystem.current

    Properties

    EventTime

    The UTC time at which the event occurred.

    Declaration
    public DateTime EventTime { get; }
    Property Value
    Type Description
    DateTime

    InputSource

    The source the input event originates from.

    Declaration
    public IMixedRealityInputSource InputSource { get; }
    Property Value
    Type Description
    IMixedRealityInputSource

    MixedRealityInputAction

    The input action for this event.

    Declaration
    public MixedRealityInputAction MixedRealityInputAction { get; }
    Property Value
    Type Description
    MixedRealityInputAction

    SourceId

    The id of the source the event is from, for instance the hand id.

    Declaration
    public uint SourceId { get; }
    Property Value
    Type Description
    UInt32

    Methods

    BaseInitialize(IMixedRealityInputSource, MixedRealityInputAction)

    Used to initialize/reset the event and populate the data.

    Declaration
    protected void BaseInitialize(IMixedRealityInputSource inputSource, MixedRealityInputAction inputAction)
    Parameters
    Type Name Description
    IMixedRealityInputSource inputSource
    MixedRealityInputAction inputAction
    Back to top Generated by DocFX