active_menu(3alleg4)

✨ NAME ✨

okay so bestie, this is the active_menu(3alleg4) page from the Allegro manual πŸ’–. active_menu is a global pointer to the most recent activated menu β€” and yes, it's part of the Allegro game programming library, so it's giving very much "I know where you came from" energy 🌸.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

extern MENU *active_menu;

πŸ’… DESCRIPTION πŸ’…

When a menu callback procedure is triggered, this will be set to the menu item that was selected, so your routine can determine where it was called from ✨.

That's literally it, no cap. Your callback gets called, active_menu points at the menu item that was selected, and your routine can figure out where it was called from πŸŽ€. It's the main character of "who summoned me?" and honestly? Iconic.


🌈 SEE ALSO 🌈


Allegro version 4.4.3, periodt πŸ’–. That's the source/version for this little page. Catch you in the next manpage, mwah! πŸŽ€βœ¨