aa_getevent(3) keyboard functions


#include <aalib.h>

int aa_getevent
       aa_context *c,

       int wait



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.


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


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.