ALLEGRO_TOUCH_STATE(3alleg5)

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

πŸ’– 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 β€” TRUE if this touch is the primary one (usually the first one). main character touch energy πŸ‘‘
  • display β€” the ALLEGRO_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