DarkBASIC Professional Help File

DX11 SET MOUSE POSITION

Sets the screen coordinates of the mouse cursor.

Syntax

    DX11 SET MOUSE POSITION x, y, [relative]

Parameters

    x

> Integer
> The new X coordinate of the mouse cursor.

    y

> Integer
> The new Y coordinate of the mouse cursor.

    [Optional] relative

> Boolean
> If set to true (default), the cursor is positioned relative to the upper left corner of the output window. If false, the position is relative to the desktop.

Returns

This function does not return a value.

See also

INPUT Functions Menu
DX11 Function Categories