getbutton() — Silicon Graphics
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
Pascal
function getbutton(num: Device): longint;
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
IRIS Graphics Programming, Section 7.2, Polling a Device
NOTE
The routine is available only in immediate mode.
Version 2.5 — April 22, 1987