mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 22:42:52 +08:00
Updated SDL_PollEvent() documentation
Fixes https://github.com/libsdl-org/sdlwiki/issues/911
(cherry picked from commit 63a95a4a4d)
This commit is contained in:
@@ -1256,15 +1256,13 @@ extern SDL_DECLSPEC void SDLCALL SDL_FlushEvents(Uint32 minType, Uint32 maxType)
|
|||||||
* Poll for currently pending events.
|
* Poll for currently pending events.
|
||||||
*
|
*
|
||||||
* If `event` is not NULL, the next event is removed from the queue and stored
|
* If `event` is not NULL, the next event is removed from the queue and stored
|
||||||
* in the SDL_Event structure pointed to by `event`. The 1 returned refers to
|
* in the SDL_Event structure pointed to by `event`.
|
||||||
* this event, immediately stored in the SDL Event structure -- not an event
|
|
||||||
* to follow.
|
|
||||||
*
|
*
|
||||||
* If `event` is NULL, it simply returns 1 if there is an event in the queue,
|
* If `event` is NULL, it simply returns true if there is an event in the queue,
|
||||||
* but will not remove it from the queue.
|
* but will not remove it from the queue.
|
||||||
*
|
*
|
||||||
* As this function may implicitly call SDL_PumpEvents(), you can only call
|
* As this function may implicitly call SDL_PumpEvents(), you can only call
|
||||||
* this function in the thread that set the video mode.
|
* this function in the thread that initialized the video subsystem.
|
||||||
*
|
*
|
||||||
* SDL_PollEvent() is the favored way of receiving system events since it can
|
* SDL_PollEvent() is the favored way of receiving system events since it can
|
||||||
* be done from the main loop and does not suspend the main loop while waiting
|
* be done from the main loop and does not suspend the main loop while waiting
|
||||||
|
|||||||
Reference in New Issue
Block a user