![]() |
ImagoEngine
A C++ 2D game engine built on a sparse-set ECS, with scenes, scheduled systems, events, and action-based input
|
Defines InputHandler, which owns the inputs and the InputState and turns raw events into action state. More...
#include <vector>#include <string>#include "Imago/Engine/InputSource.hpp"#include "Imago/Engine/InputState.hpp"

Go to the source code of this file.
Classes | |
| class | Imago::Engine::InputHandler |
| Owned by Game. Handles registering actions and adding raw inputs to them. It updates InputState based off of window events. Systems never see this class, instead they see the InputState it owns. An action has inputs that the user decides but all logic within states should be based off of whether or not the action has been executed, not the input. Mutiple inputs can drive a single action. More... | |
Defines InputHandler, which owns the inputs and the InputState and turns raw events into action state.