.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_PumpEvents: .\" https://wiki.libsdl.org/SDL_PumpEvents .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision SDL-3.1.0 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_PumpEvents .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_PumpEvents 3 "SDL 3.1.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_PumpEvents \- Pump the event loop, gathering events from the input devices\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "void SDL_PumpEvents(void); .fi .SH DESCRIPTION This function updates the event queue and internal input device state\[char46] .B WARNING : This should only be run in the thread that initialized the video subsystem, and for extra safety, you should consider only doing those things on the main thread in any case\[char46] .BR SDL_PumpEvents () gathers all the pending input information from devices and places it in the event queue\[char46] Without calls to .BR SDL_PumpEvents () no events would ever be placed on the queue\[char46] Often the need for calls to .BR SDL_PumpEvents () is hidden from the user since .BR SDL_PollEvent () and .BR SDL_WaitEvent () implicitly call .BR SDL_PumpEvents ()\[char46] However, if you are not polling or waiting for events (e\[char46]g\[char46] you are filtering them), then you must call .BR SDL_PumpEvents () to force an event queue update\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR SDL_PollEvent (3), .BR SDL_WaitEvent (3)