Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
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