UInputMan:KeyReleased

From Data Realms Wiki

Revision as of 16:43, 7 October 2009 by DrLuke (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxUInputMan:KeyReleased( Number )
Description:
If a held key has been released the function returns true, else the function returns false. See the Keylist for the keys' numbers.
ReturnsBoolean




Example
DescriptionPrints whether a key has been released or not.
Code
  1. if UInputMan:KeyReleased(23) then print(1) else print (0) end
Output1 if "W" has been released, 0 if not.
Personal tools