asge::input::InputSystem
Owns an InputState and drives it from the frame loop.
#include <InputSystem.hpp>The piece Application actually holds, mirroring VideoSystem's shape: NewFrame() once per frame before polling, ProcessEvent() for each polled SystemEvent, GetState() for games to query.
Private Attributes
Public Member Functions
#
InputSystem()=default#
void NewFrame() noexceptRoll the previous frame's snapshot forward; call before polling this frame's events.
#
void ProcessEvent(event::SystemEvent const &inEvent) noexceptFeed one SystemEvent into the underlying InputState.
#
InputState const & GetState() const noexceptRead-only access to the queryable input state.