Assigns an initial value to a valuator.
void setvaluator (Device val, Int16 init, Int16 min, Int16 max)
SUBROUTINE SETVAL(val, init, min, max) INTEGER*4 val, init, min, max
Note: For FORTRAN users, this subroutine accepts long integer parameters (INTEGER*4) when invoked from a FORTRAN program, although it accepts short integers when invoked from a C program. The C and FORTRAN syntax shown here reflect this difference.
The setvaluator subroutine sets the initial value and the minimum and maximum values the device can assume.
- Some devices, such as tablets, report values fixed to a grid. In such a case, the device defines an initial position and is ignored.
- This subroutine cannot be used to add to a display list.
- When there is a conflict between GL standards and AIXwindows standards, the AIXwindows standard overrides the GL standard. The setvaluator subroutine cannot be used to restrict the movement of the cursor because the AIXwindows standard states that no client process (such as GL) can restrict the cursor.
|val||Specifies the device number for the valuator being set.|
|init||Specifies the initial value to be assigned to the valuator.|
|min||Specifies the minimum value that the device can assume.|
|max||Specifies the maximum value that the device can assume.|
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/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.|
Returning the current state of a valuator with the getvaluator subroutine.
AIX Graphics Library Overview, Using the Keyboard, and Controlling Queues and Devices.