al_get_touch_...n_event_source(3alleg5)

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

✨ NAME ✨

al_get_touch_input_mouse_emulation_event_source β€” Allegro 5 API πŸ’… (yes bestie, it's in the Allegro 5 manual, we're being ✨official✨ today)


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

ALLEGRO_EVENT_SOURCE *al_get_touch_input_mouse_emulation_event_source(void)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: touch screens, right? And mice? Two different little guys. Well, this function hands you back the global touch input event source β€” the one for emulated mouse events. 🐭

And what does that event source do, you ask? It generates [emulated mouse events]ALLEGRO_EVENT_MOUSE_AXES(3alleg5) β€” and those events are based on touch events. So the touches are out here cosplaying as mouse movements, no cap. πŸŽ€

Heads up bestie: this is an [Unstable API] and it seems of limited value, as touch input tends to have different semantics compared to mouse input. Like… the Allegro docs themselves are side-eyeing it a lil bit. πŸ’€ Not me calling out the API, but fr fr, touch and mouse are just built different.

πŸ‘‘ SEE ALSO πŸ‘‘


⭐ SINCE ⭐

5.1.0 β€” she's been around since 5.1.0, an icon, a legend, and she is the moment. 🫢


And that's the whole page, bestie! This was from the <strong>Allegro reference manual</strong>, for <code>al_get_touch_...n_event_source(3alleg5)</code>. Mwah, go forth and register those event sources. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from