Struct AxisPollState

Struct Documentation

struct AxisPollState

One completed axis observation; kind determines whether current is retained position or this poll’s relative sum.

Public Functions

inline float delta() const

Declaration: [[nodiscard]]

For Relative return current; for Absolute return current-previous.

Units follow the mapped axis and its configured scale.

Public Members

float current = 0.0f

Final absolute value or accumulated relative delta.

float previous = 0.0f

Preceding absolute value; relative delta baseline is zero.

CE::Input::AxisKind kind = CE::Input::AxisKind::Absolute

Absolute retention or per-poll relative accumulation.