S3D_KEY_EVENT(9)
β¨ s3d_key_event β¨
okay so bestie, welcome to the s3d_key_event page from the s3d manual π this is a section 9 (kernel/dev) situation, and it's literally just here to tell you what a key event looks like. no drama, no cap.
πΈ NAME πΈ
s3d_key_event β key event information πΉβ¨
like. it's the struct that holds what key you pressed. that's the whole vibe.
π SYNOPSIS π
#include <s3d.h>
yes bestie you gotta include the header first, that's just the rules π
π¦ STRUCTURE MEMBERS π¦
here's the whole struct, look at her:
struct s3d_key_event {
uint16_t keysym;
uint16_t unicode;
uint16_t modifier;
uint16_t state;
}
four uint16_t members, all of them, no skips, we love a tidy little struct π«Ά
keysymβ the keysym, auint16_tπΉunicodeβ the unicode value, also auint16_tπ€modifierβ the modifier,uint16_t, she's holding the modifier info πstateβ the state,uint16_t, doing state things β
ngl every single one of these is a uint16_t. all four. that's not me being lazy that's just the struct fr fr.
π DESCRIPTION π
so here's the tea β: you can use this on the buffer of an event of type S3D_EVENT_KEY*. that's it. that's the whole description. iconic honestly.
like, when you get one of those S3D_EVENT_KEY* events, this is the struct you cast that buffer to. main character energy π
π AUTHOR π
Simon Wunderlich β Author of s3d π«‘β¨
and that's the whole page bestie, we ate and left no crumbs π πΈ
this was s3d_key_event from the s3d manual, section 9, page S3D_KEY_EVENT(9) π ty for reading, ily, go press some keys π¦π
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms