ALLEGRO_TOUCH...AX_TOUCH_COUNT(3alleg5)

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

✨ NAME ✨

ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT β€” okay bestie, this is the Allegro 5 API, and this little icon is literally the touch input vibe check πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

#define ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT        16

Like, that's the whole thing. One macro. Slay. ✨


πŸ’– DESCRIPTION πŸ’–

So <pink>ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT is the maximum amount of simultaneous touches that can be detected. That's it, that's the lore 🫢

It's giving "how many lil fingers can be on the screen at the same time before Allegro is like ok bestie that's enough" πŸ’€ And the answer, per the #define, is 16. Sixteen simultaneous touches. No cap, fr fr. 🌸


🌈 SINCE 🌈

5.1.0 β€” she's been here since 5.1.0, an OG, a legend, main character energy from day one πŸ‘‘


Heads up bestie: this is a compile-time constant, so if you're out here writing code that assumes some other number of touches, the vibe check is gonna fail. Use the macro, don't hardcode, iykyk 🧚

That's the whole page, babe β€” a tiny but iconic entry from the Allegro reference manual (the 3alleg5 manual, for all my Allegro 5 girlies). Go forth and track those sixteen touches, you absolute legend πŸ’– ✨ πŸ¦‹

πŸ“¦ where this page comes from