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

qdevice Subroutine

Purpose

Enables a input device (keyboard, button, or valuator) for event queuing.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void qdevice(Device device)

FORTRAN Syntax

SUBROUTINE QDEVIC(device)
INTEGER*4 device

Description

The qdevice subroutine changes the state of the specified device so that events occurring within the device are entered in the event queue. The device can be the keyboard, a button, a valuator, or certain other pseudo-devices. The maximum number of queue entries is 50.

Note: This subroutine cannot be used to add to a display list.

Parameter

device Specifies the device whose state is to be changed so that it enters events into the event queue.

Example

The example C language program scrn_rotate.c uses the qdevice subroutine to enable input from various devices.

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

Filtering valuator motion with the noise subroutine.

Tying two valuators to a button with the tie subroutine.

Disabling an input device for event queuing with the unqdevice subroutine.

AIX Graphics Library Overview, Controlling Queues and Devices and Using the Keyboard.


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