Returns the current x-position of the mouse.
x = love.mouse.getX( )
None.
number x
Draw a vertical line at the mouse's x-position.
function love.draw() local x = love.mouse.getX() love.graphics.line(x,0, x,love.graphics.getHeight()) end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.mouse.getX