ALLEGRO_TOUCH_STATE(3alleg5)

ALLEGRO_TOUCH_STATE3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
typedef struct ALLEGRO_TOUCH_STATE ALLEGRO_TOUCH_STATE;

Overview

This is a structure that is used to hold a “snapshot” of a touch at a particular instant.

Public fields (read only):

•

id - identifier of the touch. If the touch is valid, this is positive.

•

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).

•

display - The ALLEGRO_DISPLAY(3alleg5) that was touched.

Since

5.1.0

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.