|
⇤ ← Revision 1 as of 2010-03-24 19:37:12
Size: 624
Comment: create page, add content (Rev 5540)
|
Size: 1269
Comment: update content (old wiki)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| This should only be run in the thread that sets the video mode. | This should only be run in the thread that sets the video mode. <<Color2(green,Is this a serious enough note that it should have an icon to emphasize it?)>> *<<BR>>[[SDL_PumpEvents]]() gathers all the pending input information from devices and places it on the event queue. Without calls to [[SDL_PumpEvents]]() no events would ever be placed on the queue. Often the need for calls to [[SDL_PumpEvents]]() is hidden from the user since [[SDL_PollEvent]]() and [[SDL_WaitEvent]]() implicitly call [[SDL_PumpEvents]](). However, if you are not polling or waiting for events (e.g. you are filtering them), then you must call [[SDL_PumpEvents]]() to force an event queue update.<<BR>>* |
| Line 26: | Line 28: |
| .[[SDL_PollEvent]] * |
DRAFT |
SDL_PumpEvents
Use this function to pump the event loop, gathering events from the input devices.
Syntax
void SDL_PumpEvents(void)
Code Examples
You can add your code example here
Remarks
This function updates the event queue and internal input device state.
This should only be run in the thread that sets the video mode. green
*
SDL_PumpEvents() gathers all the pending input information from devices and places it on the event queue. Without calls to SDL_PumpEvents() no events would ever be placed on the queue. Often the need for calls to SDL_PumpEvents() is hidden from the user since SDL_PollEvent() and SDL_WaitEvent() implicitly call SDL_PumpEvents(). However, if you are not polling or waiting for events (e.g. you are filtering them), then you must call SDL_PumpEvents() to force an event queue update.
*
