GINO Graphics Suite - GINO v9.0  

gAddEventType

Syntax

[C/C++:]
void gAddEventType(int intype);
[F90:]
subroutine gAddEventType(intype)
integer, intent(in) :: intype

Arguments

intype
Event type

= GNULL, Null event type
= GKEYPRESS, Key or button press
= GSEGMENT, Picture segment number
= GSEGMENTANDKEY, Picture segment number and key/button
= GLOCATOR, Screen position and key/button press
= GSTRING, Text string
= GREALS, String of real values
= GINTEGERS, String of integer values
= GMOVEMENT, Pointer, mouse or tablet movement
= GKEYRELEASE, Key or button release
= GRESIZE, Window resize event
= GPOINTERLEAVING, Pointer leaving window
= GPOINTERENTERING, Pointer entering window
= GMOUSEWHEEL, Mouse wheel movement

Description

The routine gAddEventType() adds an event type to the list of event types which may be expected in subsequent calls to gWaitForEvent() and sets the preferred event type to intype. The routine gAddEventType() has the effect of enabling all the implements that may generate the specified data type and sets the terminal in the mode for sending that data. The terminal will remain in that mode until:

(a) Another call to gAddEventType() requesting a different event type

(b) A call to gRemoveEventType() deleting the event type

(c) The terminal operator changes the mode by local action

The routine gAddEventType() must be called before any data can be returned from the routine gWaitForEvent().

See Also

gAddEventType Usage
gRemoveEventType
gWaitForEvent