Allocate and initialize an event list.
#include <gestures/event_list.h>
struct event_list* event_list_alloc(unsigned init_size, unsigned grow_size, unsigned max_size, int allow_compress)
The initial size of the list, in number of events.
The size by which a list is to be grown when full, in number of events.
The maximum size a list will be allowed to grow to, in number of events.
Allow move events to be dropped to make room in the list.
This function allocates and initializes a new event list. If init_size, grow_size and max_size are all zero, the defaults values of 256, 128 and 1024, respectively, are used. If the allow_compress parameter is non-zero, touch events of type INPUT_EVENT_MTOUCH_MOVE will be deleted from the list when it is full to make room for more items.
The newly allocated event list on success, NULL on failure