Function getMousePosition

Wraps SDL_GetMouseState which gets the mouse position relative to a focused window

int[2] getMousePosition() @trusted;

Returns

coordinate of the mouse in the focused window