Mouse.setPosition

Set the current position of the mouse in window coordinates. * This function sets the current position of the mouse cursor, relative to the given window. *

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

Parameters

position
Type: Vector2i

New position of the mouse

relativeTo
Type: const(Window)

Reference window

Meta