S3D_BUT_INFO(9)
π S3D_BUT_INFO(9) π
okay bestie, welcome to the s3d manual, section 9 β yes we're in the kernel/interface girly section, and today's main character is s3d_but_info. she's a struct. she's small. she's iconic. let's get into it π
β¨ NAME β¨
s3d_but_info β the status of a button, literally just that, no cap
πΈ SYNOPSIS πΈ
#include <s3d.h>
π¦ STRUCTURE MEMBERS π¦
struct s3d_but_info {
uint8_t button;
uint8_t state;
}
so like, two little uint8_t fields holding hands. that's the whole vibe. π
buttonβ which button we're talking aboutstateβ what's going on with it
π DESCRIPTION π
you can use this on the buffer of an event of type S3D_EVENT_MBUTTON. that's it, that's the tea. when a mouse-button event shows up, this is the struct you're peeking at. π
π AUTHOR π
Simon Wunderlich β author of s3d π«Ά
and that's a wrap, bestie!! this page came to you from the s3d manual, section 9, S3D_BUT_INFO(9) β mwah, go touch some buttons, ily πβ¨π
π¦ 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