attachcursor(3G)attachcursor(3G)NAMEattachcursor - attaches the cursor to two valuators
C SPECIFICATION
void attachcursor(Device vx, Device vy)
PARAMETERS
vx expects the valuator device number for the device that controls the
horizontal location of the cursor. By default, vx is MOUSEX.
vy expects the valuator device number for the device that controls the
vertical location of the cursor. By default, vy is MOUSEY.
DESCRIPTIONattachcursor attaches the cursor to the movement of two valuators. Both
vx and vy are valuator device numbers. (See Appendix A, Valuators, for a
list of device numbers.) The values at vx and vy determine the cursor
position in screen coordinates. Every time the values at vx or vy
change, the system redraws the cursor at the new coordinates.
SEE ALSO
noise, tie
NOTE
This routine is available only in immediate mode.
Page 1