FORTRAN (libfgl.a)
void getdev (Int32 number, Device *devices, Int16 *values)
SUBROUTINE GETDEV(number, devices, values) INTEGER*4 number INTEGER*2 devices(number), values(number)
The getdev subroutine allows you to read as many as 128 valuators and buttons (input devices) at one time.
Note: This subroutine cannot be used to add to a display list.
number | Specifies the number of devices pointed to by the devices parameter (no more than 128). |
devices | Specifies an array containing the identifiers (device number constants, such as MOUSEX, BPADX, and LEFTMOUSE) of the devices to read. The array pointed to by the devices parameter can contain up to 128 devices. |
values | Specifies the array into which the system is to write the values read from the devices listed in the devices array. Each member in the values array corresponds to a member of the devices array and returns the state of each device in the corresponding location. |
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
Returning the current state of a valuator with the getvaluator subroutine.
AIX Graphics Library Overview, Controlling Queues and Devices, Using the Keyboard, and Querying the System.