al_get_display_event_source(3alleg5)
π al_get_display_event_source β Allegro 5 API β¨
okay bestie, welcome to the alleg5 manual, the part where we go get an event source off a display π
πΈ NAME πΈ
al_get_display_event_source β it's the Allegro 5 API, and this one function is your little key to unlocking a display's event stream π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
ALLEGRO_EVENT_SOURCE *al_get_display_event_source(ALLEGRO_DISPLAY *display)
no cap, that's the whole signature, and yes you pass in your ALLEGRO_DISPLAY * and you get an ALLEGRO_EVENT_SOURCE * right back π«Ά
β¨ DESCRIPTION β¨
So basically: you hand it a display, and it retrieves the associated event source for you. That's the vibe. That's the whole job π
And if you're sitting there like "okay but what events even come out of a display??" β the answer lives in the docs on events, specifically ALLEGRO_EVENT_DISPLAY_EXPOSE(3alleg5), which has the full list of the events that displays will generate. go read it, it's giving informative π
lowkey important: the source you get back is associated with the display you passed in β it's that display's event source, not a brand new one you invented π
and that's the whole page, bestie, we ate and left no crumbs π
signing off with the official receipts: this was the Allegro reference manual, for Allegro 5 (the alleg5 manual, section 3), and the page header/footer tag along as al_get_display_event_source(3alleg5) on both ends. πβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms