← API Reference Class

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

#InputState m_Stateprivate

Public Member Functions

#InputSystem()=default
#void NewFrame() noexcept

Roll the previous frame's snapshot forward; call before polling this frame's events.

#void ProcessEvent(event::SystemEvent const &inEvent) noexcept

Feed one SystemEvent into the underlying InputState.

#InputState const & GetState() const noexcept

Read-only access to the queryable input state.