Difference between revisions of "SetCursorPos"
From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 31: | Line 31: | ||
<b><u>Arguments</u></b> | <b><u>Arguments</u></b> | ||
− | <b>pos</b>: | + | <b>pos</b>: point (x,y) <br/> |
The position where the mouse cursor should be be moved to! {x=int,y=int} | The position where the mouse cursor should be be moved to! {x=int,y=int} | ||
Revision as of 15:43, 12 March 2013
Command History
Available since v?
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: point (x,y)
The position where the mouse cursor should be be moved to! {x=int,y=int}
Flags
none
Return
none
日本語 – 正體中文 – 한국어 – Dansk – Deutsch – English – Español – Français – Italiano – Nederlands – Polski – Português – Svenska – Русский |
Relevant Pages: getCursorPos |