Couples cursor position to valuator device.
FORTRAN (libfgl.a)
void attachcursor (Device vx, Device vy)
SUBROUTINE ATTACH (vx, vy) INTEGER*4 vx, vy
The attachcursor subroutine couples the pointer location to the indicated valuators. As the values generated by the valuators change, the cursor position is updated to reflect the new readings. The values are interpreted as screen coordinates (as measured in pixels) from the lower-left hand corner of the screen. Currently, the only devices supported by the attachcursor subroutine are the MOUSEX, MOUSEY, GHOSTX and GHOSTY devices. This subroutine cannot be used to add to a display list.
Note: For FORTRAN users, this subroutine accepts long integer parameters (INTEGER*4) when started from a FORTRAN program, although it accepts short integers when started from a C program. The C and FORTRAN syntax shown here reflect this difference.
This subroutine is part of GL in the AIXwindows Environment/6000 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. |
Tying valuators to a button with the tie subroutine.
Filtering valuator motion with the noise subroutine.
Setting the minimum, maximum, and current value of a valuator with the setvaluator subroutine.
AIX Graphics Library Overview, Creating a Cursor, and Creating and Managing Windows.