Difference between revisions of "SetCursorPos"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 23: Line 23:
 
setCursorPos(cPos)
 
setCursorPos(cPos)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:Player Commands]]

Revision as of 14:56, 26 November 2013

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)