Generic FunctionPackage: common-graphicsToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

event

Arguments: stream event-number button-state data

In 5.0 and later, events are handled somewhat differently than in 3.0.2. Instead of specializing event, you should specialize the new generic function named after the event, such as mouse-right-down and mouse-moved. These were only constants in 3.0.2 (corresponding to the event-number argument to event) but they are now constants and generic-functions. event is still called, as in 3.0.2, but it simply dispatches to the appropriate new function. All these functions take the same arguments as event except the event-number argument. Argument list change: event used to have five arguments. It now accepts only four. The time (fifth) argument is no longer passed because it was a performance drain and rarely if ever used. If you need the time, use the function GetMessageTime.

See cg-events.htm for information about event handling in Common Graphics.


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1