Returns the current x-position of the mouse.
== Function ==
=== Synopsis ===
<source lang="lua">
x = love.mouse.getX( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|x|The position of the mouse along the x-axis.}}
== Examples ==
Draw a vertical [[love.graphics.line|line]] at the mouse's x-position.
<source lang="lua">
function love.draw()
   local x = love.mouse.getX()
   love.graphics.line(x,0, x,love.graphics.getHeight())
end
</source>
== See Also ==
* [[parent::love.mouse]]
* [[love.mouse.getY]]
* [[love.mouse.getPosition]]
[[Category:Functions]]
{{#set:Description=Returns the current x-position of the mouse.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|love.mouse.getX}}