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 about
  • state β€” 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 πŸ’–βœ¨πŸŽ€