love.mouse.isDown( button )
Checks whether a certain button is down.
Usage
love.mouse.isDown( button )
Arguments
buttonA mouse button.
Returns
booleanWhether the button is down.
Examples
Example 1: Using mouse buttons.
function draw()
if love.mouse.isDown(love.mouse_left) then
love.graphics.draw("The left mouse button is being pressed ^.^", 100, 100);
end
end