SDL_GetWindowFromEvent - Get window associated with an event.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
event an event containing a windowID.
Name
SDL_GetWindowFromEvent - Get window associated with an event.
Return Value
Returns the associated window on success or NULL if there is none.
See Also
SDL_PollEvent(3), SDL_WaitEvent(3), SDL_WaitEventTimeout(3) Simple Directmedia Layer SDL 3.2.20 SDL_GetWindowFromEvent(3)
Synopsis
#include<SDL3/SDL_events.h>SDL_Window*SDL_GetWindowFromEvent(constSDL_Event*event);
Thread Safety
It is safe to call this function from any thread.
