Struct Button

Struct Documentation

struct Button

Owned physical-button observation; portable and supplementary native identities are distinct.

Public Members

CE::Input::ControlId button

Physical control token used for State mapping.

ButtonPhase phase

Press, release or repeat observation.

CE::Input::Modifiers modifiers = CE::Input::Modifiers::None

Modifier snapshot for this observation.

int native_code = -1

Optional backend key/button token; -1 means unspecified.

int scancode = -1

Optional native keyboard scancode; -1 means unspecified.

CE::Input::KeyboardKey key = CE::Input::KeyboardKey::Unknown

Portable physical keyboard identity when known.

CE::Input::MouseButton mouse_button = CE::Input::MouseButton::Unknown

Portable mouse-button identity when known.

std::optional<Pointer> position = std::nullopt

Observed mouse position; a later cursor sample must not replace it.