MouseClick
From LoTROInterface Wiki
(Difference between revisions)
m (Added the category Mouse Events) |
(→Parameters: Added args explanation) |
||
Line 11: | Line 11: | ||
{{API_Parameter|args|table|The event arguments}} | {{API_Parameter|args|table|The event arguments}} | ||
+ | * <code>args.X</code> and <code>args.Y</code> contain the coordinates of the mouse relative to the upper-left corner of <code>sender</code>. | ||
+ | * <code>args.Button</code> is an integer indicating which mouse button was clicked. | ||
==Remarks== | ==Remarks== |
Revision as of 20:31, 24 September 2023
API Reference > Turbine.UI.Control.MouseClick()
Event fired when a mouse button is clicked.
Syntax
Lua | |
---|---|
function Control:MouseClick(sender, args); |
Parameters
sender
Type: table
The event sender.
args
Type: table
The event arguments
-
args.X
andargs.Y
contain the coordinates of the mouse relative to the upper-left corner ofsender
. -
args.Button
is an integer indicating which mouse button was clicked.