getbutton(3) — Unix Programmer’s Manual
NAME
getbutton - return the current state of a button
SYNOPSIS
C
Boolean getbutton(b)
Device b;
FORTRAN
logical function getbut(b)
integer∗2 b
Pascal
function getbutton(b: Device): Boolean;
DESCRIPTION
Getbutton polls a button, returning its current state. A button device is supplied as the argument. Getbutton returns either TRUE or FALSE, where TRUE means that the button is pressed.
SEE ALSO
qbutton, setbutton, tie
NOTE
This command can only be used in immediate mode.
Silicon Graphics — R1c