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
InputState.hpp File Reference

Defines InputState, the read-only view of every action that sytems query. More...

#include <cstdint>
#include <vector>
#include <unordered_map>
#include <string>
#include <glm/vec2.hpp>
Include dependency graph for InputState.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Imago::Engine::InputState
 What systems query for input (ctx.input->began("jump")). This is only for querying. The InputHandler writes it. More...

Typedefs

using Imago::Engine::ActionId = uint32_t
 Id of a registered action, resolve a name once with action_id() and cache it for the fast path.

Variables

constexpr ActionId Imago::Engine::INVALID_ACTION = UINT32_MAX
 The bits that should be returned by action_id() when a name is not registered.

Detailed Description

Defines InputState, the read-only view of every action that sytems query.

Author
Shane David