Reads the first entry in the event queue.
FORTRAN (libfgl.a)
Int32 qread(Int16 *data)
INTEGER*4 FUNCTION QREAD(data) INTEGER*2 data
The qread subroutine returns the first entry on the event queue. If the event queue is empty, the qread subroutine blocks. That is, this subroutine does not return until an event occurs. If the event queue is not empty, the qread subroutine returns the device number associated with the first event in the queue, writes the associated data into the data parameter, and removes that entry from the queue.
Note: This subroutine cannot be used to add to a display list.
data | Specifies a pointer to the variable that is to receive the data in the event queue. |
The identifier for the device read.
The example C language program scrn_rotate.c uses the qread subroutine to read input from the event queue.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
Enabling an input device for event queuing with the qdevice subroutine.
Disabling an input device for event queuing with the unqdevice subroutine.
AIX Graphics Library Overview and Controlling Queues and Devices.