Class PhysicalPressEventRouter
This class exists to route PressableButton events through to Interactable. The result is being able to have physical touch call Interactable.OnPointerClicked.
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public class PhysicalPressEventRouter : MonoBehaviour
Fields
InteractableOnClick
Declaration
public PhysicalPressEventRouter.PhysicalPressEventBehavior InteractableOnClick
Field Value
Type | Description |
---|---|
PhysicalPressEventRouter.PhysicalPressEventBehavior |
routingTarget
Declaration
public Interactable routingTarget
Field Value
Type | Description |
---|---|
Interactable |
Methods
OnHandPressCompleted()
Gets called when the ButtonReleased event is invoked within the default PressableButton and PressableButtonHoloLens2 components. Once the physical press with a hand is completed, set the press and physical touch states within Interactable
Declaration
public void OnHandPressCompleted()
OnHandPressTouched()
Gets called when the TouchBegin event is invoked within the default PressableButton and PressableButtonHoloLens2 components. When the physical touch with a hand has begun, set physical touch state within Interactable.
Declaration
public void OnHandPressTouched()
OnHandPressTriggered()
Gets called when the ButtonPressed event is invoked within the default PressableButton and PressableButtonHoloLens2 components. When the physical press with a hand is triggered, set the physical touch and press state within Interactable.
Declaration
public void OnHandPressTriggered()
OnHandPressUntouched()
Gets called when the TouchEnd event is invoked within the default PressableButton and PressableButtonHoloLens2 components. Once the physical touch with a hand is removed, set the physical touch and possibly press state within Interactable.
Declaration
public void OnHandPressUntouched()