Difference between revisions of "SetCursorPos"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected page to Global Command: setCursorPos)
 
Line 1: Line 1:
==setCursorPos==
+
#REDIRECT [[Global Command: setCursorPos]]
 
 
<div class="command-min-version-info">Available since: <span class="command-min-version">v3.3</span></div>
 
 
 
<div class="command-doc">Sets the absolute cursor position.</div>
 
 
 
Lua Syntax:
 
<pre class="command-syntax">setCursorPos(pos)</pre>
 
===Arguments===
 
====pos====
 
:'''{x=int,y=int}''' - The position where the cursor will be set to.
 
===Flags===
 
===Return Values===
 
None.
 
===Examples===
 
Example 1:
 
<syntaxhighlight>
 
setCursorPos({x=240,y=480})
 
</syntaxhighlight>
 
Example 2:  
 
<syntaxhighlight>
 
local cPos = {x=240,y=480}
 
setCursorPos(cPos)
 
</syntaxhighlight>
 

Latest revision as of 12:29, 19 May 2023