Class MixedRealityInputModule
Inheritance
MixedRealityInputModule
Implements
IEventSystemHandler
Assembly: cs.temp.dll.dll
public class MixedRealityInputModule : StandaloneInputModule, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler, IEventSystemHandler
Fields
List of pointers that need one last frame of updates to remove
Declaration
protected readonly List<MixedRealityInputModule.PointerData> pointerDataToRemove
Field Value
Mapping from pointer id to event data and click state
Declaration
protected readonly Dictionary<int, MixedRealityInputModule.PointerData> pointerDataToUpdate
Field Value
Properties
Declaration
public IEnumerable<IMixedRealityPointer> ActiveMixedRealityPointers { get; }
Property Value
Whether the input module is auto initialized by event system or requires a manual call to Initialize()
Declaration
public bool ManualInitializationRequired { get; }
Property Value
Whether the input module should pause processing temporarily
Declaration
public bool ProcessPaused { get; set; }
Property Value
Declaration
public Camera RaycastCamera { get; }
Property Value
Methods
Declaration
public override void ActivateModule()
Declaration
public override void DeactivateModule()
Adds MRTK pointer support as mouse input for Unity UI.
Declaration
protected override MouseState GetMousePointerEventData(int pointerId)
Parameters
Type |
Name |
Description |
Int32 |
pointerId |
|
Returns
Type |
Description |
MouseState |
|
Initialize the input module.
Declaration
Declaration
public override bool IsModuleSupported()
Returns
Process the active pointers from MixedRealityInputManager and all other Unity input.
Declaration
public override void Process()
Declaration
protected void ResetMousePointerEventData(MixedRealityInputModule.PointerData pointerData)
Parameters
Declaration
protected PointerEventData.FramePressState StateForPointer(MixedRealityInputModule.PointerData pointerData)
Parameters
Returns
Type |
Description |
PointerEventData.FramePressState |
|
Suspend the input module when a runtime profile change is about to happen.
Declaration
Declaration
protected void UpdateMousePointerEventData(MixedRealityInputModule.PointerData pointerData)
Parameters
Explicit Interface Implementations
Declaration
void IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData eventData)
Parameters
Declaration
void IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData eventData)
Parameters
Declaration
void IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData eventData)
Parameters
Declaration
void IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData eventData)
Parameters
Declaration
void IMixedRealitySourceStateHandler.OnSourceDetected(SourceStateEventData eventData)
Parameters
Declaration
void IMixedRealitySourceStateHandler.OnSourceLost(SourceStateEventData eventData)
Parameters
Implements
IEventSystemHandler