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