Difference between revisions of "love.keypressed"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Callback function triggered when a key is pressed.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 14: Line 14:
 
* [[parent::love]]
 
* [[parent::love]]
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]
{{#set:Description=}}
+
{{#set:Description=Callback function triggered when a key is pressed.}}

Revision as of 16:17, 14 February 2010

Callback function triggered when a key is pressed.

Function

Synopsis

love.keypressed( key, unicode )

Arguments

KeyConstant key
Character of the key pressed.
number unicode
The unicode number of the key pressed.

Returns

Nothing.

See Also