love.mouse.getPosition( )
This function returns two parameters. Since getting the mouse position is
a very common task, this function makes that process slighly prettier and
and more LOVEley for everyone. See the example below for usage!
Usage
love.mouse.getPosition( )
Arguments
None
Returns
numberThe current x position.
numberThe current y position.
Examples
Example 1:
local x, y = love.graphics.getPosition()