aa_initkbd(3) initialize the AA-lib keyboard driver.


#include <aalib.h>

int aa_initkbd
       struct aa_context *context,

       const struct aa_kbddriver *drv,

       int mode



struct aa_context *context
Specifies the AA-lib context to operate on.
const struct aa_kbddriver *drv
Driver you wish to use.
int mode
Mask of extra features you request. Can contain AA_SENDRELEASE if you are interested in release events too.


This is the most primitive AA-lib keyboard initialization function. Allows better control over the process than the easier to use aa_autoinitkbd function.


1 on success and 0 on fail.