MouseClick

From LoTROInterface Wiki

(Difference between revisions)
Jump to: navigation, search
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


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 and args.Y contain the coordinates of the mouse relative to the upper-left corner of sender.
  • args.Button is an integer indicating which mouse button was clicked.

Remarks

Personal tools