UInputMan:KeyReleased

From Data Realms Wiki

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