attachcursor - attaches the cursor to two valuators
void attachcursor(Device vx, Device vy)
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.
attachcursor 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.
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]