Results 1 - 13 of 13 results out of about 6839 pages. (3.38 seconds)
- SDL_PumpEvents . . . 8 matches
- ...
= SDL_PumpEvents =
Use this function to pump the event loop, gathering events from the input devices.
<<TableOfContents()>>
== Syntax ==
{{{#!highlight cpp
void SDL_PumpEvents(...
- SDL_WaitEventTimeout . . . 2 matches
- ...DL_Event structure pointed to by '''event'''.
As this function implicitly calls [[SDL_PumpEvents]](), you can only call this function in the thread that initialized the video subs...
- SDL_WaitEvent . . . 2 matches
- ...DL_Event structure pointed to by '''event'''.
As this function implicitly calls [[SDL_PumpEvents]](), you can only call this function in the thread that initialized the video subs...
- SDL_QuitRequested . . . 2 matches
- ...dd your code example here
}}}
== Remarks ==
This is actually a macro that calls [[SDL_PumpEvents]]() followed by [[SDL_PeepEvents]](). Since it pumps the event queue, it can only ...
- SDL_PeepEvents . . . 2 matches
- ...emoved from the queue||
{i} This function is thread-safe.
You may have to call [[SDL_PumpEvents]]() before calling this function. Otherwise, the events may not be ready to be fil...
- SDL_GetMouseState . . . 2 matches
- ...utton bitmask of the current button state.
== Code Examples ==
{{{#!highlight cpp
SDL_PumpEvents();
if (SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_LEFT)) {
SDL_Log(...
- SDL_GetKeyboardState . . . 2 matches
- ...P]) {
printf("Right and Up Keys Pressed.\n");
}
}}}
== Remarks ==
Note: Use [[SDL_PumpEvents]]() to update the state array.
Note: This function gives you the current state af...
- SDL_PollEvent . . . 1 match
- ...n event in the queue, but will not remove it.
As this function implicitly calls [[SDL_PumpEvents]](), you can only call this function in the thread that set the video mode.
[[SDL...
- SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP . . . 1 match
- ...he window message loop is not run||
||1||the window message loop is processed in [[SDL_PumpEvents]]()||
== Default ==
By default SDL will process the windows message loop.
== C...
- SDL_FlushEvents . . . 1 match
- ...s. If you want to make sure that all pending OS events are flushed, you can call [[SDL_PumpEvents]]() on the main thread immediately before the flush call.
== Related Functions ==...
- SDL_FlushEvent . . . 1 match
- ...s. If you want to make sure that all pending OS events are flushed, you can call [[SDL_PumpEvents]]() on the main thread immediately before the flush call.
== Related Functions ==...
- CategoryEvents . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= Event Handling =
'''Include File(s):''' [[http://hg.libsdl.org/SDL/file/default/include/SDL...
- CategoryAPI . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= SDL 2.0 API by Name =
<<TableOfContents()>>
== Hints ==
<<FullSearchCached(category:Catego...
