|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
Immutable snapshot of all input device states at a single point in time. More...
#include <flint/input/input.h>
Collaboration diagram for Flint::InputSnapshot:Public Attributes | |
| std::set< SDL_Keycode > | keysDown |
| std::set< Flint::GamepadButton > | buttonsDown |
| Vec2f | leftStick {0, 0} |
| Vec2f | rightStick {0, 0} |
| float | rightTrigger = 0.f |
Immutable snapshot of all input device states at a single point in time.
Produced by InputManager::pollCurrentState(). Callers compare snapshots frame-to-frame to detect pressed/released transitions.