25#include "guillaume/ecs/system_filler.hpp"
27#include "guillaume/components/focus.hpp"
28#include "guillaume/components/text.hpp"
30#include "guillaume/event/event_manager.hpp"
32#include <utility/event/event.hpp>
33#include <utility/event/text_input_event.hpp>
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
The base class to derive a system from: a System whose signature is the list of component types given...
Hands each engine event to the listeners subscribed to its type.
Base class that gives a system the input events of one type, one event per frame.
void prepare(void) override
Take the next pending text input event, once per frame.
~TextInput(void)=default
Default destructor.
TextInput(event::EventBus &eventBus)
Create the system, in the Event phase, and subscribe it to text input events.
void cleanup(void) override
Does nothing.
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Append the text of the current text input event to the content of one entity.
Rules. Every class here runs each frame on the entities that have the components it declares.