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
Syntax
UInputMan:KeyHeld(
Number
)
Description:
Returns the true or false to a key being held down. See the
Keylist
for the keys' numbers.
Returns
Boolean
Example
Description
Prints whether a key is being held down or not.
Code
if
UInputMan:KeyHeld
(
23
)
then
print
(
1
)
else
print
(
0
)
end
Output
1 if "W" is held down, 0 if not.
Category
:
Lua
Views
Page
Discussion
View source
History
Personal tools
Log in / create account
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Search
Toolbox
What links here
Related changes
Special pages
Permanent link