Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ psample_choice(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

psample_choice(3g)  —  Subroutines

Name

psample_choice − Returns the choice number from the choice-class logical input device specified. 

Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function

Syntax

void psample_choice (
  Pint         wsid,      /∗ (I) Workstation identifier ∗/
  Pint         dev_num,   /∗ (I) Choice device number ∗/
  Pin_status  ∗status,    /∗ (O) Choice input status ∗/
  Pint        ∗choice     /∗ (O) Choice ∗/
)

Data Structures

typedef enum {
    PIN_STATUS_NONE,    /∗ not used by this function ∗/
    PIN_STATUS_OK,      /∗ measure contains a choice ∗/
    PIN_STATUS_NO_IN    /∗ measure does not contain a choice ∗/
} Pin_status;

Description

psample_choice takes the current measure of the choice-class logical input device specified by the device number and the workstation identifier.  If the input status is PIN_STATUS_OK, this function returns your choice number (a positive integer). 

See Also

pget_choice
pinit_choice
pinq_choice_st
preq_choice
pset_choice_mode

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