Record ALLEGRO_JOYSTICK_EVENT

Hierarchy
Methods
Properties

Unit

Declaration

type ALLEGRO_JOYSTICK_EVENT = record

Description

Contains the joystick events information.

See also
ALLEGRO_EVENT
An ALLEGRO_EVENT is an union of all builtin event structures, i.e.

Overview

Fields

ftype: ALLEGRO_EVENT_TYPE;
source: ALLEGRO_JOYSTICKptr;
timestamp: AL_DOUBLE;
id: ALLEGRO_JOYSTICKptr;
stick: AL_INT;
axis: AL_INT;
pos: AL_FLOAT;
button: AL_INT;

Description

Fields

ftype: ALLEGRO_EVENT_TYPE;

Indicates the type of event.

source: ALLEGRO_JOYSTICKptr;

The joystick which generated the event.

timestamp: AL_DOUBLE;

When the event was generated.

id: ALLEGRO_JOYSTICKptr;

The joystick which generated the event. This is not the same as the event source.

stick: AL_INT;

The stick number, counting from zero. Axes on a joystick are grouped into "sticks".

axis: AL_INT;

The axis number on the stick, counting from zero.

pos: AL_FLOAT;

The axis position, from -1.0 to +1.0.

button: AL_INT;

The button which was pressed, counting from zero.


Generated by PasDoc 0.15.0. Generated on 2024-11-10 15:15:06.