#include <inputrouter.h>
Public Types | |
using | EntityList = std::vector< EntityInstance * > |
Public Member Functions | |
virtual void | routeEvent (const InputEvent &event, const EntityList &entities)=0 |
Base class for routing input events. An input router selects input components from a hierarchy of entities. This class provides an interface to forward input events to input components that belong to one of the entities. Override the routing call to implement custom routing behavior.
using EntityList = std::vector<EntityInstance*> |
|
pure virtual |
Forwards an input event to a set of entities.
event | The event to process. |
entities | The list of entities to process recursively. |
Implemented in DefaultInputRouter.