giiSetEventMask(3gii)

NAME
giiSetEventMask, giiGetEventMask, giiAddEventMask, giiRemoveEventMask - set the types of events you want to see

SYNOPSIS
#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);

DESCRIPTION

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.

RETURN VALUE

giiSetEventMask, giiAddEventMask and giiRemoveEventMask return 0 on success or an error code otherwise.

giiGetEventMask returns the currently set mask.