### Header File

The header file may include additional information sdl_events.hrl

### Exports

pumpEvents()

Args: none
Returns: ok
C-API: void SDL_PumpEvents(void);

peepEvents()

Args: None
Returns: {NumOfEvents, [Events]}
C-API: int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask)
Desc:
Get up to to 16 events of all types.

peepEvents(NumEvents, Mask)

Args: NumEvents (might be 0) Mask (32 bits event mask)
Returns: {NumOfEvents, [Events]}
C-API: int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask)
Desc:
Exits if error (NumEvents < 256)

peepEvents(NumEvents, ?SDL_GETEVENT, Mask)

Args: NumEvents (might be 0) ?SDL_GETEVENT Mask (32 bits event mask)
Returns: {NumOfEvents, [Events]}
C-API: int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask)
Desc:
Exits if error (NumEvents < 256)

pollEvent()

Args: none
Returns: no_event | Event (one of the event records)
C-API: int SDL_PollEvent(SDL_Event *event);

waitEvent()

Args: none
Returns: Event (one of the event records)
C-API: int SDL_WaitEvent(SDL_Event *event);

eventState(Type, State)

Args: EventType (see sdl_events.hrl), State (SDL_QUERY | SDL_IGNORE |SDL_ENABLE)
Returns: State (?SDL_ENABLE | ?SDL_IGNORE)
C-API: Uint8 SDL_EventState(Uint8 type, int state);