IsKeyPressed

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{DaisyMethod | daisy.isKeyPressed(keyCode) | This method returns true if the specified key is pressed down. | {{MethodParam|keyCode|A number representing a key, see keyCodes...')
m
 
Line 4: Line 4:
This method returns true if the specified key is pressed down.
This method returns true if the specified key is pressed down.
|
|
-
{{MethodParam|keyCode|A number representing a key, see [[keyCodes]]}}
+
{{MethodParam|keyCode|A number| A keyCode representing a key, see [[keyCodes]]}}
|
|
Returns one Boolean, true if key is pressed, false otherwise.
Returns one Boolean, true if key is pressed, false otherwise.

Latest revision as of 17:15, 18 January 2010

daisy.isKeyPressed(keyCode)

This method returns true if the specified key is pressed down.

Parameter Expected Type Description
keyCode A number A keyCode representing a key, see keyCodes
Returns

Returns one Boolean, true if key is pressed, false otherwise.

Daisymoon Video Lib

Example

   local enterPressed = daisy.isKeyPressed(13)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox