Record ALLEGRO_EVENT
Hierarchy Methods Properties
Unit
allegro5
Declaration
type ALLEGRO_EVENT = record
Description
An ALLEGRO_EVENT is an union of all builtin event structures, i.e. it is an object large enough to hold the data of any event type. All events have the following fields in common:
ftype (ALLEGRO_EVENT_TYPE) Indicates the type of event.
any.source (ALLEGRO_EVENT_SOURCEptr) The event source which generated the event.
any.timestamp (DOUBLE) When the event was generated.
By examining the type field you can then access type-specific fields. The any.source field tells you which event source generated that particular event. The any.timestamp field tells you when the event was generated. The time is referenced to the same starting point as al_get_time.
Each event is of one of the following types, with the usable fields given.
Overview
Fields
Description
Fields
any: ALLEGRO_ANY_EVENT |
This is to allow the user to access the other fields which are common to all event types, without using some specific type structure.
|
Generated by PasDoc 0.15.0. Generated on 2024-11-10 15:15:06.
|