Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.keyboard:isDown( key )
Usage
love.keyboard:isDown( key )
Arguments
keyThe key in question.
Returns
booleanWhether the passed key is pressed down.
Examples
Example 1: if love.keyboard:isDown(love.key_x) then
   print("X is down!");
end