Record ALLEGRO_MOUSE_EVENT

Hierarchy
Methods
Properties

Unit

Declaration

type ALLEGRO_MOUSE_EVENT = record

Description

Contains the mouse 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_MOUSEptr;
timestamp: AL_DOUBLE;
display: ALLEGRO_DISPLAYptr;
x: AL_INT;
y: AL_INT;
z: AL_INT;
w: AL_INT;
dx: AL_INT;
dy: AL_INT;
dz: AL_INT;
dw: AL_INT;
button: AL_UINT;
pressure: AL_FLOAT;

Description

Fields

ftype: ALLEGRO_EVENT_TYPE;

Indicates the type of event.

source: ALLEGRO_MOUSEptr;

The mouse which generated the event.

timestamp: AL_DOUBLE;

When the event was generated.

display: ALLEGRO_DISPLAYptr;

The display which had mouse focus.

x: AL_INT;

x-coordinate.

y: AL_INT;

y-coordinate.

z: AL_INT;

z-coordinate. This usually means the vertical axis of a mouse wheel, where up is positive and down is negative.

w: AL_INT;

w-coordinate. This usually means the horizontal axis of a mouse wheel.

dx: AL_INT;

Change in the coordinates value since the previous ALLEGRO_EVENT_MOUSE_AXES event.

dy: AL_INT;

Change in the coordinates value since the previous ALLEGRO_EVENT_MOUSE_AXES event.

dz: AL_INT;

Change in the coordinates value since the previous ALLEGRO_EVENT_MOUSE_AXES event.

dw: AL_INT;

Change in the coordinates value since the previous ALLEGRO_EVENT_MOUSE_AXES event.

button: AL_UINT;

The mouse button which was pressed or released, numbering from 1.

pressure: AL_FLOAT;

Pressure, ranging from 0.0 to 1.0.


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