Function SDL_GetKeyboardFocus

pub unsafe extern "C" fn SDL_GetKeyboardFocus() -> *mut SDL_Window
Available on crate feature dep_sdl3 only.
Expand description

Query the window which currently has keyboard focus.

§Return value

Returns the window with keyboard focus.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.