SDL_GetWindowFromEvent - Man Page
Get window associated with an event.
Synopsis
#include <SDL3/SDL_events.h> SDL_Window * SDL_GetWindowFromEvent(const SDL_Event *event);
Function Parameters
- event
an event containing a windowID.
Return Value
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
Info
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS