SetCursorPos

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 18:55, 6 March 2013 by AFRLme (talk) (Created page with "<b>History</b>: Available since <span style="color:green">v3.7</span> Sets position (absolute) of the mouse cursor to the x,y position provided! Syntax: <syntaxhighlight> se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

History: Available since v3.7

Sets position (absolute) of the mouse cursor to the x,y position provided!

Syntax:

setCursorPos(pos)

Example:

-- let's set mouse cursor to 240 by 480!
setCursorPos({x=240,y=480})

-- you could of course use variables instead!
local cPos = {x=240,y=480}
setCursorPos(cPos)
-- or ...
setCursorPos({x=cPos.x,y=cPos.y})


Arguments

pos: integer (number)
The position where the mouse cursor should be be moved to! {x=int,y=int}

Flags: none

Return: none