Version 0.1.1a
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
ColorFontImageMusicSound
Callbacks
loadupdaterendermousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig files
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