getbutton(3G) getbutton(3G)
NAME
getbutton - returns the state (up or down) of a button
SPECIFICATION
C Boolean getbutton(num)
Device num;
FORTRAN logical function getbut(num)
integer*4 num
DESCRIPTION
getbutton returns the state of the button numbered num. 0
indicates the button is up; 1 indicates it is down. If num
is invalid, -1 is returned.
SEE ALSO
Programming Guide, Section 7.3, Polling a Device
NOTE
The routine is available only in immediate mode.
Page 1 (printed 8/20/87)