Extensions Key Up

boolean mmf.keyboard.keyUp ( number key )

Test if one of the keyboard keys is currently released.  A list of valid virtual key constants can be found here.

Parameters

key A virtual key constant

Return Values

boolean true if the key is not held down, false otherwise

Example

-- Assume we have an object "hero"
-- Our hero can hover on his jetpack with the space key
while (mmf.keyboard.keyUp(mmf.VK_SPACE)) do
  hero.y = hero.y + 1
end


See also:
     Button Down, Button Up, Key Down

Copyright 2010 Justin Aquadro