love.mouse.isDown

Checks whether a certain button is down.

Function

Synopsis

down = love.mouse.isDown( button )

Arguments

MouseConstant button
The button to check.

Returns

boolean down
True if the specified button is down.

Example

if love.mouse.isDown("r") then
   -- do something awesome
end

See Also


Other Languages