[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

getdev Subroutine

Purpose

Reads a list of valuators.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void getdev
(Int32 number, 
Device *devices, 
Int16 *values)

FORTRAN Syntax

SUBROUTINE GETDEV(number, devices, values)
INTEGER*4 number
INTEGER*2 devices(number), values(number)

Description

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.

Parameters

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.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.
/usr/include/gl/device.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fdevice.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]