Function Window.mouseFocused

Wraps SDL_GetMouseFocus which verifies whether mouse input is focused to the window

bool mouseFocused() @property @trusted const;

Returns

true if mouse input is focused, otherwise false