Difference between revisions of "love.mouse.getPosition"

m (1 revision: Importing from potato (again).)
m (added "Languages" section)
Line 1: Line 1:
 
 
Returns the current position of the mouse.
 
Returns the current position of the mouse.
 
== Function ==
 
== Function ==
Line 15: Line 14:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the current position of the mouse.}}
 
{{#set:Description=Returns the current position of the mouse.}}
 +
 +
== Other Languages ==
 +
{{i18n|love.mouse.getPosition}}

Revision as of 19:30, 16 November 2010

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