|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Component that makes an entity react to one kind of input event (a hand pinch, a hand poke, a trigger pull, ...). More...
Component that makes an entity react to one kind of input event (a hand pinch, a hand poke, a trigger pull, ...).
Each hand interaction component derives from it: HandPinchInteraction is Interaction<utility::event::HandPinchEvent>. The system of the same input (systems::HandPinch, ...) runs in the Event phase on the entities that have the component, a Transform and a Bound. systems::HandPinch and systems::HandPoke call the handler stored in InteractionBase; the other hand systems have no per-entity rule (see each derived component).
The component also derives from EventType, so it has the fields of that event, but no system of the library writes them: read the state from the accessors of the derived component instead (HandPinchInteraction::isPinch, HandPokeInteraction::isPoke).
| EventType | The event the component reacts to. |
| HasFactory | Whether EventType declares a nested Factory type. Deduced with HasFactoryType; leave it to its default. |
Definition at line 115 of file interaction.hpp.