PointerEvent
(
identifier
, type
, pose
, data
)
|
Constructor for new PointerEvents.
Signature
Oculus.Interaction.PointerEvent.PointerEvent(int identifier, PointerEventType type, Pose pose, object data=null) Parameters type: PointerEventType
The PointerEventType which most accurately characterizes the represented interaction
data: object
Contractually undefined metadata
|
Data
: object
[Get] |
A generic metadata property used for a variety of purposes in Interaction SDK logic.
Though this property is public, it has no formal contract, and consequently it is generally not safe to assume that any specific piece of information is available through this property on any instance at any time.
Signature
object Oculus.Interaction.PointerEvent.Data |
EventId
: UInt64
[Get] |
A unique value associated with this specific event, meaning the semantic occurrence at a specific point in time which motivated the creation of this data object.
Signature
UInt64 Oculus.Interaction.PointerEvent.EventId |
Identifier
: int
[Get] |
The IInteractorView.Identifier associated with interactor which originated the interaction represented by this event.
This identifier is uniquely associated with a single interactor instance in the experience.
Signature
int Oculus.Interaction.PointerEvent.Identifier |
Pose
: Pose
[Get] |
The world-space position associated with the represented interaction.
The precise meaning of this Pose varies based on the interaction Type and what kind of interaction it is: a PokeInteractor's PointerEventType.Select might designate the pose of the interactor at the moment of selection, a GrabInteractor PointerEventType.Move might designate the expected pose of the interactable based on the behavior of the relevant IMovement in the most recent processing frame, etc. PointerEvent thus does not specify a unique, precise contract for this value, and the responsibility for interpreting this pose correctly belongs to the handler.
Signature
Pose Oculus.Interaction.PointerEvent.Pose |
Type
: PointerEventType
[Get] |
A characterization of the type of interaction this event represents.
Each PointerEvent can represent only one simple interaction, and complex interactions (for example, an interactable being deselected by one interactor in order to be selected by another) must consequently be represented by multiple sequential PointerEvents.
Signature
PointerEventType Oculus.Interaction.PointerEvent.Type |