Difference between revisions of "love.keyboard.isDown"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Checks whether a certain key is down. | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 13: | Line 13: | ||
* [[parent::love.keyboard]] | * [[parent::love.keyboard]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Checks whether a certain key is down.}} |
Revision as of 16:17, 14 February 2010
Checks whether a certain key is down.
Function
Synopsis
down = love.keyboard.isDown( key )
Arguments
KeyConstant key
- The key to check.
Returns
boolean down
- True if the key is down, false if not.