Immutable snapshot of all input device states at a single point in time.
More...
#include <flint/input/input.h>
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 21 of file input.h.
◆ buttonsDown
| std::set<Flint::GamepadButton> Flint::InputSnapshot::buttonsDown |
All gamepad buttons currently held.
Definition at line 23 of file input.h.
◆ keysDown
| std::set<SDL_Keycode> Flint::InputSnapshot::keysDown |
All keyboard keys currently held.
Definition at line 22 of file input.h.
◆ leftStick
| Vec2f Flint::InputSnapshot::leftStick {0, 0} |
Left stick position in [-1, 1].
Definition at line 24 of file input.h.
◆ rightStick
| Vec2f Flint::InputSnapshot::rightStick {0, 0} |
Right stick position in [-1, 1].
Definition at line 25 of file input.h.
◆ rightTrigger
| float Flint::InputSnapshot::rightTrigger = 0.f |
Right trigger value in [0, 1].
Definition at line 26 of file input.h.
The documentation for this struct was generated from the following file: