DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetWindowFromEvent.3.en
SDL_GetWindowFromEvent(3) SDL3 FUNCTIONS SDL_GetWindowFromEvent(3)

SDL_GetWindowFromEvent - Get window associated with an event.

Defined in SDL3/SDL_events.h

#include "SDL3/SDL.h"
SDL_Window * SDL_GetWindowFromEvent(const SDL_Event *event);

an event containing a windowID .

( SDL_Window
*) Returns the associated window on success or NULL if there is none.

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

(3), SDL_PollEvent(3), (3), SDL_WaitEvent(3), (3), SDL_WaitEventTimeout(3)

SDL 3.2.10 Simple Directmedia Layer