SDL_GetWindowFromEvent - Man Page
Get window associated with an event.
Header File
Defined in SDL3/SDL_events.h
Synopsis
#include "SDL3/SDL.h" SDL_Window * SDL_GetWindowFromEvent(const SDL_Event *event);
Function Parameters
- event
an event containing a windowID .
Return Value
( SDL_Window
*) Returns the associated window on success or NULL if there is none.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
·(3), SDL_PollEvent(3), ·(3), SDL_WaitEvent(3), ·(3), SDL_WaitEventTimeout(3)
Info
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS