MouseClick

From LoTROInterface Wiki

(Difference between revisions)
Jump to: navigation, search
(Parameters: Added args explanation)
Current revision (20:57, 24 September 2023) (view source)
(Parameters: switched to template)
 
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>.
+
{{API_ArgMouseClick}}
-
* <code>args.Button</code> is an integer indicating which mouse button was clicked.
+
==Remarks==
==Remarks==

Current revision


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, args.Y: Integers. Contain the coordinates of the mouse event relative to the upper-left corner of sender.
  • args.Button: Integer. Indicates which mouse button was clicked.

Remarks

Personal tools