Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
InputManager.h File Reference

Keyboard and mouse state cache updated each frame by the engine. More...

#include <array>
#include "Constants.h"
#include "Types.h"
#include "input/Key.h"
+ Include dependency graph for InputManager.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mnd::InputManager
 Stores per-frame keyboard and mouse input state. More...
 

Namespaces

namespace  mnd
 

Detailed Description

Keyboard and mouse state cache updated each frame by the engine.

Engine::Run() feeds GLFW callbacks into InputManager; game code reads state via IsKeyPressed() / IsMouseButtonPressed() and mouse-position deltas.

Keys are indexed by GLFW key codes (GLFW_KEY_*). Mouse buttons are indexed by GLFW mouse-button codes (GLFW_MOUSE_BUTTON_*). The manager is not instantiated directly — access it through Engine::GetInputManager().

See also
Engine::GetInputManager

Definition in file InputManager.h.