Mouse.setPosition

Set the current position of the mouse in desktop coordinates.

This function sets the global position of the mouse cursor on the desktop.

  1. void setPosition(Vector2i position)
    class Mouse
    static
    void
    setPosition
  2. void setPosition(Vector2i position, const(Window) relativeTo)

Parameters

position Vector2i

New position of the mouse

Meta