mousepressed( x, y, button )
Usage
mousepressed( x, y, button )Arguments
xThe position of the mouse on the x-axis.
yThe position of the mouse on the y-axis.
buttonWhich button is pressed.
Returns
Nothing
Examples
Example 1:   
function mousepressed(x, y, button)
   if button == love.mouse_left then
      print("Left mouse button was pressed")
   end
end