Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getbutton(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getbutton(3G)  —  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): Boolean;

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

Programming Guide, Section 7.3, Polling a Device

NOTE

This routine is available only in immediate mode. 
 

Version 3.6  —  December 20, 1987

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