SetCursorPos

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 22:28, 30 September 2014 by Vis apiuser (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

setCursorPos

Available since: v3.3
Sets the absolute cursor position.

Lua Syntax:

setCursorPos(pos)

Arguments

pos

{x=int,y=int} - The position where the cursor will be set to.

Flags

Return Values

None.

Examples

Example 1:

setCursorPos({x=240,y=480})

Example 2:

local cPos = {x=240,y=480}
setCursorPos(cPos)