ludus::input::KeyboardSnapshot¶
Ludus Wiki · API overview · Browse API
Struct
Immutable per-step keyboard view, published by ConsumeStep and stable until the next consumption/reset publication (K02, K05).
Down is retained held state; Pressed/Released are OR-accumulated actual transitions in the step (not current & ~previous). A baseline-synchronized held key reports Down but no Pressed. Reset status is distinct from a fabricated Released.
Declared in modules/input/include/ludus/input/keyboard.h
#include <ludus/input/keyboard.h>
struct ludus::input::KeyboardSnapshot final
Fields¶
StepId¶
uint64 ludus::input::KeyboardSnapshot::StepId = 0
Related types: uint64
Declared in modules/input/include/ludus/input/keyboard.h
MapVersion¶
uint32 ludus::input::KeyboardSnapshot::MapVersion = 0
Related types: uint32
Declared in modules/input/include/ludus/input/keyboard.h
Focused¶
bool ludus::input::KeyboardSnapshot::Focused = false
Declared in modules/input/include/ludus/input/keyboard.h
LastReset¶
ResetReason ludus::input::KeyboardSnapshot::LastReset = ResetReason::None
Related types: ResetReason
Declared in modules/input/include/ludus/input/keyboard.h
ResetEpoch¶
uint32 ludus::input::KeyboardSnapshot::ResetEpoch = 0
Related types: uint32
Declared in modules/input/include/ludus/input/keyboard.h
Down¶
bool ludus::input::KeyboardSnapshot::Down[KEY_COUNT][KEY_COUNT] = {}
Declared in modules/input/include/ludus/input/keyboard.h
Pressed¶
bool ludus::input::KeyboardSnapshot::Pressed[KEY_COUNT][KEY_COUNT] = {}
Declared in modules/input/include/ludus/input/keyboard.h
Released¶
bool ludus::input::KeyboardSnapshot::Released[KEY_COUNT][KEY_COUNT] = {}
Declared in modules/input/include/ludus/input/keyboard.h
Suppressed¶
bool ludus::input::KeyboardSnapshot::Suppressed[KEY_COUNT][KEY_COUNT] = {}
True for keys installed by a baseline and not yet released+repressed; such keys are Down but cannot activate actions (K06).