This is an old revision of the document!
kii_input_t
struct kii_input_s
{
kii_input_t *next; /* next in linked list */
kii_u_t focus; /* the focus we belong to */
kii_u_t id; /* unique input device ID */
kii_event_mask_t events; /* event types generated */
kii_event_mask_t report; /* events to report */
kii_ascii_t vendor[KII_MAX_VENDOR_STRING]; /* who built this device */
kii_ascii_t model[KII_MAX_MODEL_STRING]; /* what model */
/* Comment: method for executing a command specific to the input */
int (*Command)(kii_input_t *, kii_u_t cmd, void *);
/* Comment: method called to poll a new event */
int (*Poll)(kii_input_t *);
/* Comment: method called to treat an event */
void (*Parse)(kii_input_t *, kii_event_t *, int);
kii_private_t priv; /* private data of the input */
};
kii_register_input()
kii_register_input() is typically called when a new input driver is loaded.
kii_error_t kii_register_input( /* Comment: the focus to register to */ kii_u_t focus, /* Comment: preinitialized data about the input to register */ kii_input_t *dev );
kii_unregister_input()
kii_unregister_input() is typically called
void kii_unregister_input( /* Comment: the input to unregister from its focus */ kii_input_t *dev );