ALLEGRO_TOUCH_STATE(3alleg5)
π ALLEGRO_TOUCH_STATE π
okay bestie, welcome to the Allegro 5 API β¨ this page is all about ALLEGRO_TOUCH_STATE, and honestly? it's giving very "screenshot but for fingers" energy π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
typedef struct ALLEGRO_TOUCH_STATE ALLEGRO_TOUCH_STATE;
β¨ DESCRIPTION β¨
so like, this is a structure that holds a whole "snapshot" of a touch at one particular instant π like someone paused the timeline mid-tap and was like "here, keep this." iconic.
Public fields (read only): β yes queen, you can look but you cannot touch (the struct, anyway π)
idβ identifier of the touch. if the touch is valid, this is positive. no cap.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). main character touch energy πdisplayβ theALLEGRO_DISPLAY(3alleg5)that was touched π₯οΈβ¨
β SINCE β
5.1.0 β vintage, but make it slay π
lowkey a whole vibe check for your fingertips, highkey essential if you're doing multitouch stuff. periodt. π
and that's the whole page bestie, we ate and left no crumbs π this was the Allegro reference manual version of ALLEGRO_TOUCH_STATE(3alleg5) β mwah, go touch some screens (gently) π
β¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms