Difference between revisions of "SetCursorPos"
From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 23: | Line 23: | ||
setCursorPos(cPos) | setCursorPos(cPos) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− |
Revision as of 21:28, 30 September 2014
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)