Difference between revisions of "love.mouse.getPosition"

m (added "Languages" section)
Line 14: Line 14:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the current position of the mouse.}}
 
{{#set:Description=Returns the current position of the mouse.}}
 
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.mouse.getPosition}}
 
{{i18n|love.mouse.getPosition}}

Revision as of 10:34, 25 March 2011

Returns the current position of the mouse.

Function

Synopsis

x, y = love.mouse.getPosition( )

Arguments

None.

Returns

number x
The position of the mouse along the x-axis.
number y
The position of the mouse along the y-axis.

See Also


Other Languages