#include <inputrouter.h>
Public Member Functions | |
| DefaultInputRouter ()=default | |
| DefaultInputRouter (bool recursive) | |
| virtual void | routeEvent (const InputEvent &event, const EntityList &entities) |
| void | setRecursive (bool value) |
| bool | isRecursive () const |
Additional Inherited Members | |
Public Types inherited from InputRouter | |
| using | EntityList = std::vector< EntityInstance * > |
Default implementation of an input router. Sends input events to all input components that are associated with the selection of entities.
|
default |
Default constructor
| DefaultInputRouter | ( | bool | recursive | ) |
Constructor that sets the recursive flag
| recursive | if child entities are taken into consideration |
| bool isRecursive | ( | ) | const |
|
virtual |
Sends event to all entities in the entity list. Note that when recursive is set to true child entities are considered as well
| event | the event to forward to the list of entities |
| entities | the entities to forward the events to |
Implements InputRouter.
| void setRecursive | ( | bool | value | ) |
| value | If input events are forward recursively to child entities |