al_get_event_source_data(3alleg5)

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

okay so bestie, welcome to the al_get_event_source_data(3alleg5) page β€” it's giving Allegro 5 API energy and honestly? It's a short one, so let's get into it πŸ’–


πŸ¦‹ NAME πŸ¦‹

al_get_event_source_data β€” the Allegro 5 API function that lowkey just gets the data you stashed on an event source. No cap.


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

intptr_t al_get_event_source_data(const ALLEGRO_EVENT_SOURCE *source)

🌸 DESCRIPTION 🌸

So like, this function returns the abstract user data that's associated with the event source. You know, the lil custom pointer or whatever you attached earlier? It hands it back to you.

If no data was previously set, it returns NULL. That's it. That's the whole vibe. No drama, no surprises.

fr fr, if you get NULL back, it just means nobody set anything yet β€” not a bug, just a blank slate 🫢

πŸ’… SEE ALSO πŸ’…


k bye bestie, this page came straight from the Allegro reference manual β€” no date listed but it's timeless anyway. Stay slaying those event sources πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from