Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::InputSnapshot Struct Reference

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
 

Detailed Description

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.

Definition at line 20 of file input.h.


The documentation for this struct was generated from the following file: