UInputMan:MouseButtonHeld
From Data Realms Wiki
Jump to:
navigation
,
search
Function
Syntax
UInputMouseButtonHeld(
Number
)
Description:
Returns whether or not a mouse button is held down.
Returns
Boolean
Example
Description
Prints 1 if left mouse button is held, 0 if not.
Code
if
UInputMan:MouseButtonHeld
(
0
)
then
print
(
1
)
else
print
(
0
)
end
--0 is left button, 1 is right, and 2 is middle.
Output
Prints 1 or 0 to console.
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
Printable version
Permanent link