ImagoEngine
A C++ 2D game engine built on a sparse-set ECS, with scenes, scheduled systems, events, and action-based input
Loading...
Searching...
No Matches
InputHandler.hpp File Reference

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"
Include dependency graph for InputHandler.hpp:
This graph shows which files directly or indirectly include this file:

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...

Detailed Description

Defines InputHandler, which owns the inputs and the InputState and turns raw events into action state.

Author
Shane David