UInputMan:WhichKeyHeld

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxUInputMan:WhichKeyHeld( )
Description:
Returns the key value of the key being held down. See the Keylist for the keys' numbers.
ReturnsNumber




Example
DescriptionReturns the value of the held key.
Code
  1. print(UInputMan:WhichKeyHeld())
OutputPrints number corresponding to the key held. Hangs until keypress if no key is held.
Personal tools