OnMouseDown: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
|parameter2 = int button The ID of the mouse button that was pressed down. | |parameter2 = int button The ID of the mouse button that was pressed down. | ||
|cancellable = false | |cancellable = false | ||
|notes=Mouse Buttons:<br>ID 0: Left button.<br>ID 1: Right button.<br>ID 2: Wheel button. | |||
}} | }} |
Revision as of 22:14, 11 March 2021
Event
Client Only
Online and Offline
Not Cancellable
Available since Client 1.0.0
function(Event event, int mouse, int button)
The onMouseDown event is invoked when a mouse button is pressed down.
Parameters
1) | Event | event | The event object for this event. |
2) | int | mouse | The ID of the mouse. |
3) | int | button | The ID of the mouse button that was pressed down. |
Attributes
const | This event cannot be cancelled. |
Notes
- Mouse Buttons:.
- ID 0: Left button.
- ID 1: Right button.
- ID 2: Wheel button.
Examples
There aren't any examples for this event.
Compatibility
There isn't any compatibility information for this event.
Related
Client Related
OnMouseConnected
OnMouseDisconnected
OnMouseDown
OnMouseLeave
OnMouseMove
OnMouseUp
OnMouseWheel