aa_getkey(3) return next keypress event from queue.


#include <aalib.h>

int aa_getkey
       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 keypress event from queue.


Next keypress event from queue (values lower than 256 are used to report ascii values of pressed keys and higher values are used to represent some special keys like arrows) See the AA-lib texinfo documentation for more details.