Ties two valuators to a button.
FORTRAN (libfgl.a)
void tie(Device button, Device val1, Device val2)
SUBROUTINE TIE(button, val1, val2) INTEGER*4 button, val1, val2
The tie subroutine requires a button and two valuators, specified by the val1 and val2 parameters. When a queued button changes state, three entries are made in the queue: one records the current state of the button, and two record the current positions of each valuator.
Tie one valuator to a button by making the val2 parameter = 0. Untie a button by making both the val1 and val2 parameters = 0. The button parameter precedes both the val1 and val2 parameters in the event queue. The val1 parameter appears before the val2 parameter.
Note: This subroutine cannot be used to add to a display list.
button | Specifies the current state of a button. |
val1 | Specifies the current position of the first valuator. |
val2 | Specifies the current position of the second valuator. |
The example C language program vlsi.c uses the tie subroutine to enter the current mouse coordinates into the event queue whenever the left or middle mouse buttons are pressed.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
Returning the current state of a button with the getbutton subroutine.
AIX Graphics Library Overview, Using the Keyboard, and Controlling Queues and Devices.