getbutton(3G)

getbutton - returns the state of a button

As shipped in IRIX 6.5. First release of IRIX 6.5.

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.