preq_val(3g) — Subroutines
Name
preq_val − Prompts for input using the valuator-class logical input device specified.
Operating States: PHOP, WSOP, ∗, ∗
PHIGS standard function
Syntax
void preq_val (
Pint wsid, /∗ (I) Workstation identifier ∗/
Pint dev_num, /∗ (I) Valuator device number ∗/
Pin_status ∗status, /∗ (O) Input status ∗/
Pfloat ∗value /∗ (O) Valuator value ∗/
)
Data Structures
typedef enum {
PIN_STATUS_NONE, /∗ user performed a break action ∗/
PIN_STATUS_OK, /∗ user entered a value ∗/
PIN_STATUS_NO_IN /∗ not used by this function ∗/
} Pin_status;
Description
preq_val prompts for input using the valuator-class logical input device specified by the device number and the workstation identifier. If the input status is PIN_STATUS_OK, this function returns the value (a real number).
See Also
pget_val
pinit_val
psample_val
pset_val_mode