UInputMan:KeyReleased

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search

Latest revision as of 16:43, 7 October 2009

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