Checks whether a certain mouse button is down.
This function does not detect mouse wheel scrolling; you must use the love.wheelmoved (or love.mousepressed in version 0.9.2 and older) callback for that.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
down = love.mouse.isDown( button, ... )
Removed in LÖVE 0.10.0
This variant is not supported in that and later versions.
down = love.mouse.isDown( button )
Available since LÖVE 0.7.2 and removed in LÖVE 0.10.0
This variant is not supported in earlier or later versions.
anyDown = love.mouse.isDown( button1, button2, button3, ... )
val = 0 -- establish a variable for later use function love.update(dt) if love.mouse.isDown(2) then val = val + dt -- we will increase the variable by 1 for every second the button is held down end end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.