Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getbutton(3g) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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.5r1  —  October 29, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026