Difference between revisions of "Lua:getMousePos"
Jump to navigation
Jump to search
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13) |
|||
Line 1: | Line 1: | ||
− | + | [[Category:Lua]] | |
+ | '''function''' getMousePos() | ||
+ | |||
+ | Returns 2 parameters. The x-pos and the y-pos of the mouse on the screen. | ||
+ | |||
+ | Example: | ||
+ | x,y = getMousePos() | ||
+ | |||
+ | |||
+ | |||
+ | {{LuaFunctionParametersNone}} | ||
+ | |||
+ | {{LuaSeeAlso}} | ||
+ | |||
+ | === Related Functions === | ||
+ | * [[Lua:setMousePos|setMousePos]] |
Latest revision as of 19:09, 18 March 2019
function getMousePos()
Returns 2 parameters. The x-pos and the y-pos of the mouse on the screen.
Example:
x,y = getMousePos()
Function Parameters[edit]
<none>