UInputMan:KeyHeld

From Data Realms Wiki

Revision as of 16:30, 7 October 2009 by DrLuke (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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