Previous Next Up Title Contents General Index Functions Index Bookshelf

GET CHOICE

pget_choice


CALL SEQUENCE

void pget_choice (status, choice)

INPUT PARAMETERS

Pin_status	*status,
Pint	*choice

ARGUMENTS

status
Choice status
choice
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 General Index Functions Index Bookshelf