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

◆ pollCurrentState()

InputSnapshot Flint::InputManager::pollCurrentState ( )

Build a snapshot of the current state of all input devices.

Queries SDL directly for keyboard state and, if g_gamepad is non-null, for gamepad buttons and axes. Each call is independent of prior calls.

Returns
An InputSnapshot capturing keyboard keys, gamepad buttons, analogue sticks, and the right trigger.