23#include "guillaume/systems/hand_pinch.hpp"
29 utility::
event::HandPinchEvent>(eventBus)
38 interaction.setPinching(engaged);
Whether an XR hand pinches while pointing at an entity, and what to call when it does.
Hands each engine event to the listeners subscribed to its type.
void setEngaged(components::HandPinchInteraction &interaction, bool engaged) override
Write the pinching flag of the interaction component.
~HandPinch(void) override
Destructor.
HandPinch(event::EventBus &eventBus)
Create the system, in the Event phase, and subscribe it to hand pinch events.
Base of the hand input systems that point at an entity: a gesture counts for the entity the hand ray ...
State. Every class here is plain data attached to an entity.
Delivery of engine events to the systems that subscribed to them.
Rules. Every class here runs each frame on the entities that have the components it declares.