ALLEGRO_EVENT_SOURCE(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ALLEGRO_EVENT_SOURCE(3alleg5) πŸ’–

okay bestie, gather round, because we're talking about ALLEGRO_EVENT_SOURCE from the Allegro 5 API and honestly? it's giving main character energy πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

typedef struct ALLEGRO_EVENT_SOURCE ALLEGRO_EVENT_SOURCE;

🌸 DESCRIPTION 🌸

so like. an event source is literally any object that can generate events. that's it. that's the whole vibe. πŸ’…

for example, an ALLEGRO_DISPLAY can generate events β€” yes queen, she's an event source too πŸ‘‘ β€” and you can grab the ALLEGRO_EVENT_SOURCE pointer from an ALLEGRO_DISPLAY using al_get_display_event_source(3alleg5).

and here's the iconic part: you can also create your own "user" event sources that emit custom events. DIY era fr fr πŸ¦‹βœ¨


🫢 SEE ALSO 🫢


not me being obsessed with event sources... no cap, they're lowkey the backbone of the whole event system πŸ’€πŸ’–

that's a wrap bestie!! this lil love letter to ALLEGRO_EVENT_SOURCE(3alleg5) came straight from the Allegro reference manual πŸŽ€ go forth and emit events, you absolute icon πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from