al_unregister_event_source(3alleg5)

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

πŸ’… al_unregister_event_source β€” Allegro 5 API

okay bestie, welcome to the Allegro 5 API corner of the Allegro reference manual πŸŽ€ this one's short and sweet and honestly kinda iconic, so let's go ✨


🌸 SYNOPSIS

#include <allegro5/allegro.h>

void al_unregister_event_source(ALLEGRO_EVENT_QUEUE *queue,
   ALLEGRO_EVENT_SOURCE *source)

πŸ¦‹ DESCRIPTION

so basically: you're unregistering an event source from an event queue. that's it, that's the whole vibe πŸ’–

and listen β€” if that event source isn't actually registered with that queue in the first place? nothing happens. literally nothing. no error, no drama, no screaming into the void. it's giving "ok bestie, noted, moving on" πŸ™ˆ

but here's the part you actually need to know, so pay attention πŸ”₯

if the queue had any events in it that originated from that event source, then after this call those events will no longer be in the queue. gone. poof. they get cleared out. so don't be surprised when they don't show up later, okay? 😭

πŸ‘‘ SEE ALSO


that's the whole page, no cap. go forth and unregister responsibly, queen πŸ’…βœ¨πŸŒΈ

signing off from the Allegro reference manual β€” this was the al_unregister_event_source(3alleg5) page, mwah πŸ’–

πŸ“¦ where this page comes from