AL_GET_TOUCH_INPUT_STATE(3)
π
al_get_touch_input_state(3) β Allegro 5 API touch-state moment β¨
Manual name: Library Functions Manual β folded in near the top, cute and accounted for. π This is the Allegro 5 API page for grabbing the current touch input state, and itβs lowkey a one-function wonder. π¦
πΈ NAME πΈ
al_get_touch_input_stateβ Allegro 5 API. Thatβs the whole name, bestie; no cap. π
β¨ SYNOPSIS β¨
Include this header:
#include <allegro5/allegro.h>
Then the function signature is exactly:
void al_get_touch_input_state(ALLEGRO_TOUCH_INPUT_STATE *ret_state)
π¦ DESCRIPTION π¦
Okay so what does it do? It gets the current touch input state β literally the touch vibe check at this exact moment. π«Ά
The touch information is copied into the ALLEGRO_TOUCH_INPUT_STATE(3) you provide to this function. You hand it ret_state (that ALLEGRO_TOUCH_INPUT_STATE * from the synopsis), and boom: the current touch info lands in the ALLEGRO_TOUCH_INPUT_STATE(3) you gave it. π
No cap: the copying destination is the ALLEGRO_TOUCH_INPUT_STATE(3) you pass in. Thatβs the whole flow. β¨
β SINCE β
Available since 5.1.0 β vintage Allegro 5 era, but make it iconic. π
Sign-off era: π source/version: Allegro reference manual Β· page: al_get_touch_input_state(3) Β· date: no date listed on this page, so Iβm not inventing one, 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