Views
love.mouse.isDown
Checks whether a certain button is down.
Contents |
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
-- do something awesome
end