Function getGlobalMousePosition

Wraps SDL_GetGlobalMouseState (from SDL 2.0.4) which gets the mouse position globally

int[2] getGlobalMousePosition() @trusted;

Returns

coordinate of the mouse in the display