pumpEvents()
peepEvents()
peepEvents(NumEvents, Mask)
peepEvents(NumEvents, ?SDL_GETEVENT, Mask)
pollEvent()
waitEvent()
eventState(Type, State) Args: none
Returns: ok
C-API: void SDL_PumpEvents(void);
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.
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)
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)
Args: none
Returns: no_event | Event (one of the event records)
C-API: int SDL_PollEvent(SDL_Event *event);
Args: none
Returns: Event (one of the event records)
C-API: int SDL_WaitEvent(SDL_Event *event);
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);