al_get_touch_...t_event_source(3alleg5)

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

πŸ’… 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