Mouse.getPosition

Get the current position of the mouse in window coordinates.

This function returns the current position of the mouse cursor, relative to the given window.

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

Parameters

relativeTo const(Window)

Reference window

Return Value

Type: Vector2i

Current position of the mouse.

Meta