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/keyboard_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 keyboard event, once per frame.
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Apply the current keyboard event to the text of one entity.
~KeyboardControl(void)=default
Default destructor.
KeyboardControl(event::EventBus &eventBus)
Create the system, in the Event phase, and subscribe it to keyboard events.
void cleanup(void) override
Does nothing.
Rules. Every class here runs each frame on the entities that have the components it declares.