Previous Next Up Title Contents Index Functions Index Top Library

GET CHOICE

PGET_CHOICE


CALL SEQUENCE

void pget_choice(
)

TYPES

typedef enum {
	PIN_STATUS_NONE, 
	PIN_STATUS_OK, 
	PIN_STATUS_NO_IN
} Pin_status;

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

Reads a CHOICE event. The CHOICE input logical value is read in the current event report in the PHIGS state list. It is composed of the selected choice and of the state after selection when the CHOICE event is placed in the queue.

Example:

/* Event choice */
	Pin_status status;
	Pint choice;
	......
	pget_choice(&status,&choice);
	......

ERRORS

3
Ignoring function, function requires state (PHOP, WSOP,*,*)
259
Ignoring function, the input device class of the current input report does not match the class

SEE ALSO

set choice mode, initialize choice , request choice , sample choice , await event, flush device events, inquire choice device state, inquire default choice device state


Previous Next Up Title Contents Index Functions Index Top Library