ludus::input::StepEvent¶
Ludus Wiki · API overview · Browse API
Struct
One ordered record as it was consumed for the current step, including the reset boundary marker.
Multiplicity is preserved: two Down/Up pairs appear as four entries (K02). Borrowed until the next ConsumeStep.
Declared in modules/input/include/ludus/input/keyboard.h
#include <ludus/input/keyboard.h>
struct ludus::input::StepEvent final
Types¶
Kind¶
enum class Kind : uint8
Related types: uint8
Transition¶
Transition
ResetBoundary¶
ResetBoundary
Declared in modules/input/include/ludus/input/keyboard.h
Fields¶
Which¶
Kind ludus::input::StepEvent::Which = Kind::Transition
Related types: Kind
Declared in modules/input/include/ludus/input/keyboard.h
Transition¶
KeyTransition ludus::input::StepEvent::Transition = KeyTransition::Down
Related types: KeyTransition
Declared in modules/input/include/ludus/input/keyboard.h
PhysicalKey¶
Key ludus::input::StepEvent::PhysicalKey = Key::Unknown
Related types: Key
Declared in modules/input/include/ludus/input/keyboard.h
Source¶
RecordSource ludus::input::StepEvent::Source = RecordSource::Synthetic
Related types: RecordSource
Declared in modules/input/include/ludus/input/keyboard.h
Reset¶
ResetReason ludus::input::StepEvent::Reset = ResetReason::None
meaningful when Which == ResetBoundary
Related types: ResetReason
Declared in modules/input/include/ludus/input/keyboard.h
Sequence¶
uint64 ludus::input::StepEvent::Sequence = 0
Related types: uint64
Declared in modules/input/include/ludus/input/keyboard.h
StepId¶
uint64 ludus::input::StepEvent::StepId = 0
Related types: uint64