ALLEGRO_TOUCH_STATE(3)
π 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βTRUEif this touch is the primary one (usually the first one, iykyk). πdisplayβ theALLEGRO_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