1SDL_PumpEvents(3)              SDL API Reference             SDL_PumpEvents(3)
2
3
4

NAME

6       SDL_PumpEvents  - Pumps the event loop, gathering events from the input
7       devices.
8

SYNOPSIS

10       #include "SDL.h"
11
12       void SDL_PumpEvents(void);
13

DESCRIPTION

15       Pumps the event loop, gathering events from the input devices.
16
17       SDL_PumpEvents gathers all the pending input information  from  devices
18       and  places  it  on the event queue. Without calls to SDL_PumpEvents no
19       events would ever be placed on the queue.  Often  calls  the  need  for
20       SDL_PumpEvents   is  hidden  from  the  user  since  SDL_PollEvent  and
21       SDL_WaitEvent implicitly call SDL_PumpEvents. However, if you  are  not
22       polling or waiting for events (e.g. your filtering them), then you must
23       call SDL_PumpEvents to force an event queue update.
24
25              Note:
26
27              You can only call this function in the thread that set the video
28              mode.
29

SEE ALSO

31       SDL_PollEvent
32
33
34
35SDL                         Tue 11 Sep 2001, 22:59           SDL_PumpEvents(3)
Impressum