#include <ggi/gii.h>
int giiSetEventMask
(gii_input_t inp, gii_event_mask evm);
gii_event_mask giiGetEventMask
(gii_input_t inp);
int giiAddEventMask
(gii_input_t inp, gii_event_mask mask);
int giiRemoveEventMask
(gii_input_t inp, gii_event_mask mask);
giiSetEventMask sets the mask of events you want to receive. Keep that down to those you really handle, as this allows to save time and memory by skipping checks and not allocating queues for events you will never read out.
giiGetEventMask lets you query the currently set mask.
giiAddEventMask and giiRemoveEventMask are macros that set or delete individual bits in the bitmask.