class InputManager

The InputManager instance is responsible for registering the current input state across all inputs for a frame, and responding to queries about individual input states from the application layer.

File location: framework/cauldron/framework/inc/core/inputmanager.h

Methods

Return type

Description

void

InputManager Update function. Called once a frame in order to poll all connected devices to setup the “InputState“ for the frame.

const InputState &

GetInputState (int frameOffset = 0) const
Query input state for the current frame (or cached frames)

void

Tells the InputManager to ignore input for the current frame. Some platform updates require us to skip input polling for a frame.

static InputManager*

Creates a platform-specific InputManager. Function must be implemented for each platform supported.

Detailed description

The InputManager instance is responsible for registering the current input state across all inputs for a frame, and responding to queries about individual input states from the application layer.

Methods

Update

Copied!

void Update ()

InputManager Update function. Called once a frame in order to poll all connected devices to setup the InputState for the frame.


GetInputState

Copied!

const InputState & GetInputState (int frameOffset = 0) const

Query input state for the current frame (or cached frames)


IgnoreInputForFrame

Copied!

void IgnoreInputForFrame ()

Tells the InputManager to ignore input for the current frame. Some platform updates require us to skip input polling for a frame.


CreateInputManager

Copied!

static InputManager* CreateInputManager ()

Creates a platform-specific InputManager. Function must be implemented for each platform supported.