Mouse.getPosition

Get the current position of the mouse in desktop coordinates. * This function returns the global position of the mouse cursor on the desktop. *

  1. Vector2i getPosition()
    class Mouse
    static
    getPosition
    (
    )
  2. Vector2i getPosition(const(Window) relativeTo)

Return Value

Type: Vector2i

Current position of the mouse.

Meta