SYNOPSIS

#include <aalib.h>

int aa_getevent

(

aa_context *c,

int wait

);

PARAMETERS

aa_context *c

Specifies the AA-lib context to operate on.

int wait

1 if you wish to wait for the even when queue is empty.

DESCRIPTION

Return next event from queue. Return next even from queue. Optionally wait for even when queue is empty.

RETURNS

Next event from queue (values lower than 256 are used to report ascii values of pressed keys and higher values have special meanings) See the AA-lib texinfo documentation for more details. 0 is returned when queue is empty and wait is set to 0.

RELATED TO aa_getevent…