Struct Button
Defined in File input-record.h
Struct Documentation
-
struct Button
Owned physical-button observation; portable and supplementary native identities are distinct.
Public Members
-
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.
-
ButtonPhase phase