Window.mousePosition - multiple declarations
Function Window.mousePosition
Wraps SDL_GetMouseState
which gets the mouse position in the window
int[2] mousePosition() @property @trusted const;
Returns
[x, y]
of the mouse position relative to the window, otherwise [-1, -1]
if mouse input is not
focused to the window
Function Window.mousePosition
Wraps SDL_WarpMouseInWindow
which sets the mouse position in the window
void mousePosition
(
int[2] newMousePosition
) @property @trusted;
Parameters
Name | Description |
---|---|
newMousePosition | coordinate of the mouse position to set |