getbutton(3G) getbutton(3G)
NAME
getbutton - returns the state of a button
C SPECIFICATION
Boolean getbutton(num)
Device num;
PARAMETERS
num is the device number of the button you want to test.
FUNCTION RETURN VALUE
There are two possible return values for this function:
FALSE indicates that button num is up.
TRUE indicates that button num is down.
The return value is undefined if there was an error, e.g. num is not a
button device.
DESCRIPTION
getbutton returns the state of button num.
SEE ALSO
getdev
NOTE
This routine is available only in immediate mode.
Page 1