OnDgsMouseMultiClick
Jump to navigation
Jump to search
This event occurs when multi clicking on any dgs-element.
Parameters
string button, string state, int absoluteX, int absoluteY, int times
- button: The name of the button which will be clicked , it can be left, right, middle
- state: The state of the mouse button. Can be down or up. ( Please note that both up and down state are supported! )
- absoluteX: The X position of the mouse cursor, in pixels, measured from the left side of the screen.
- absoluteY: The Y position of the mouse cursor, in pixels, measured from the top of the screen.
- times: An int of the clicking times.
Source
The source of this event is the DGS element that was multi clicked.
Example
This example creates a text button and clicking on it will tell you the position coordinates of the mouse cursor: <syntaxhighlight lang="lua"> DGS = exports.dgs
button = DGS:dgsCreate