al_get_touch_...t_event_source(3alleg5)
π al_get_touch_input_event_source β Allegro 5 API π
okay bestie, welcome to al_get_touch_...t_event_source(3alleg5), the lil corner of the Allegro 5 API that hands you the touchy-feely event source. pookies, this one is short and sweet but it's literally the key to your whole touch input situation. π«Ά
β¨ NAME β¨
al_get_touch_input_event_source β Allegro 5 API, yes that's the whole name, no cap π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
ALLEGRO_EVENT_SOURCE *al_get_touch_input_event_source(void)
π DESCRIPTION π
so like, this function returns the global touch input event source. one call, and boom, you've got it. π
and this event source? it generates [touch input events] ALLEGRO_EVENT_TOUCH_BEGIN(3alleg5). so every time somebody pokes the screen, this is the source that's gonna be spilling the tea to your event queue. π
β¨
not me calling one function and getting the entire global touch vibe, iconic behaviour fr fr π¦
β SINCE β
5.1.0 β yeah she's been around a while, a classic never goes out of style π
π SEE ALSO π
and that's the whole page, bestie! if you wanna go read more, this came from the Allegro reference manual β the al_get_touch_...t_event_source(3alleg5) page π mwah, go forth and register that event source, you absolute main character πβ¨π
π¦ 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