ALLEGRO_TOUCH_STATE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸŽ€ ALLEGRO_TOUCH_STATE(3) πŸŽ€

okay so this page lives in the Library Functions Manual, and we’re talking about the Allegro 5 API, bestie. πŸ’–


✨ NAME ✨

ALLEGRO_TOUCH_STATE β€” Allegro 5 API, and yes she’s iconic for it. πŸ‘‘


🌈 SYNOPSIS 🌈

#include <allegro5/allegro.h>

typedef struct ALLEGRO_TOUCH_STATE ALLEGRO_TOUCH_STATE;

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so ALLEGRO_TOUCH_STATE is a structure that holds a little β€œsnapshot” of a touch at one particular instant β€” like a Polaroid, but for your finger. πŸ“ΈπŸ’…

The public fields are read only, so look but don’t write, bestie:

  • id β€” the identifier of the touch. if the touch is valid, this is positive, periodt. βœ…
  • x β€” touch x position. πŸ“
  • y β€” touch y position. πŸ“
  • dx β€” touch relative x position. 🫢
  • dy β€” touch relative y position. 🫢
  • primary β€” TRUE if this touch is the primary one (usually the first one, iykyk). πŸ‘‘
  • display β€” the ALLEGRO_DISPLAY(3) that was touched. πŸ–₯️✨

⏰ SINCE ⏰

this has been a thing since 5.1.0, no cap. 🌸


source/version: Allegro reference manual β€’ page: ALLEGRO_TOUCH_STATE(3) β€’ date: not listed in the footer, bestie 🌈

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms