Bewerken

Delen via


MixedRealityInputModule Class

Definition

public ref class MixedRealityInputModule : UnityEngine::EventSystems::StandaloneInputModule, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySourceStateHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/Services/MixedRealityInputModule")]
[UnityEngine.RequireComponent(typeof(UnityEngine.Camera))]
public class MixedRealityInputModule : UnityEngine.EventSystems.StandaloneInputModule, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Services/MixedRealityInputModule")>]
[<UnityEngine.RequireComponent(typeof(UnityEngine.Camera))>]
type MixedRealityInputModule = class
    inherit StandaloneInputModule
    interface IMixedRealityPointerHandler
    interface IEventSystemHandler
    interface IMixedRealitySourceStateHandler
Public Class MixedRealityInputModule
Inherits StandaloneInputModule
Implements IEventSystemHandler, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler
Inheritance
UnityEngine.EventSystems.StandaloneInputModule
MixedRealityInputModule
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute
Implements
IMixedRealityPointerHandler IMixedRealitySourceStateHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

MixedRealityInputModule()

Fields

pointerDataToRemove

List of pointers that need one last frame of updates to remove

pointerDataToUpdate

Mapping from pointer id to event data and click state

Properties

ActiveMixedRealityPointers
ManualInitializationRequired

Whether the input module is auto initialized by event system or requires a manual call to Initialize()

ProcessPaused

Whether the input module should pause processing temporarily

RaycastCamera

Methods

ActivateModule() UnityEngine.EventSystems.StandaloneInputModule.ActivateModule
DeactivateModule() UnityEngine.EventSystems.StandaloneInputModule.DeactivateModule
GetMousePointerEventData(Int32)

Adds MRTK pointer support as mouse input for Unity UI.

Initialize()

Initialize the input module.

IsModuleSupported() UnityEngine.EventSystems.StandaloneInputModule.IsModuleSupported
Process()

Process the active pointers from MixedRealityInputManager and all other Unity input.

ResetMousePointerEventData(MixedRealityInputModule+PointerData)
StateForPointer(MixedRealityInputModule+PointerData)
Suspend()

Suspend the input module when a runtime profile change is about to happen.

UpdateMousePointerEventData(MixedRealityInputModule+PointerData)

Explicit Interface Implementations

IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData)
IMixedRealitySourceStateHandler.OnSourceDetected(SourceStateEventData)
IMixedRealitySourceStateHandler.OnSourceLost(SourceStateEventData)

Applies to