UInputMan:KeyHeld

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxUInputMan:KeyHeld( Number )
Description:
Returns the true or false to a key being held down. See the Keylist for the keys' numbers.
ReturnsBoolean




Example
DescriptionPrints whether a key is being held down or not.
Code
  1. if UInputMan:KeyHeld(23) then print(1) else print (0) end
Output1 if "W" is held down, 0 if not.
Personal tools