Defined in:Called to handle an event for an interactive node.
virtual void HandleInteractionEvent(EventType type, const Point3D *position, Node *initiator = nullptr);
||The event type. See the list of possible events below.|
||The position, in the target node's local coordinate system, where the event occurred.|
||The node that caused the event to occur.|
HandleInteractionEventfunction is called when an event needs to be handled for an interactive node. The
typeparameter specifies the type of event that occurred and can be one of the following constants.
||The user has begun looking at an interactive object.|
||The user has stopped looking at an interactive object.|
||The user has explicitly activated an interactive object (e.g., with a mouse click).|
||The user has released the input control used to activate an interactive object.|
||The user has changed the interaction position.|
kEventInteractionActivateevent is received, and no action is taken for other types of events.