S3D_FIND_EVENT(3)

πŸ’– S3D_FIND_EVENT(3) πŸ’–

okay so bestie, welcome to the s3d manual, section 3 (that's the library functions girlies ✨). today's main character is s3d_find_event, and she's here to help you dig an event out of the stack. no cap, it's giving detective energy πŸ•΅οΈβ€β™€οΈπŸ’…


✨ NAME ✨

s3d_find_event β€” find eevnt on stack

yes bestie, the original really does say <rainbow>eevnt</rainbow> and honestly? we respect the typo. it stays. periodt πŸ’€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <s3d.h>

struct s3d_evt *s3d_find_event(uint8_t event);

🌸 DESCRIPTION 🌸

so basically, this function finds the latest occurrence of an event, and you hand it the event type as its argument. that's the whole vibe. you give it an event, it goes looking, and it finds the most recent one on the stack. lowkey iconic. πŸ‘‘

what do you get back? a pointer to a struct s3d_evt. that's it, that's the tea πŸ“

  • you pass in: the event type, as a uint8_t named event
  • you get back: a pointer to struct s3d_evt β€” the latest occurrence of that event

literally the whole function. short, sweet, and she ate πŸ’…βœ¨


πŸŽ€ AUTHOR πŸŽ€

Simon Wunderlich β€” Author of s3d 🫢


and that's a wrap on S3D_FIND_EVENT(3), bestie!! this page comes from the s3d manual, and yeah, there's no date on this one β€” we're just vibing in the timeless s3d era β­πŸ’œ hope you find all your events, queen πŸ‘‘πŸŒˆ