SDL_KeyboardEvent.windowID

< The window with keyboard focus, if any

struct SDL_KeyboardEvent
SDL_WindowID windowID;

Meta