Skip to content

Engine → Platform

input_state.h

Everything a frame may ask about input. Published by input::end_frame(); readers never see a partially updated snapshot.

Structs

File Description
gamepad_state One gamepad slot: connection, button masks (bit i = gamepad_button(i)) and axes.
input_state Everything a frame may ask about input. Published by input::end_frame(); readers never see a partially updated snapshot.
key_bitset A fixed 512-bit set indexed by key code, laid out as eight u64 words (bit i of word w is key 64 * w + i). Codes outside [0, KEY_COUNT) are ignored by set/reset and test false.

Constants

Name Type Value Description
MAX_TEXT_CODEPOINTS_PER_FRAME inline constexpr u32 16