OnMouseUp: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onMouseUp | ||
|side = client | |||
|type = event | |type = event | ||
| | |games = iii vc sa iv | ||
| | |desc = a mouse button is released | ||
| | |arg1 = int mouse The ID of the mouse. | ||
|arg2 = int button The ID of the mouse button that was released. | |||
| | |note = This event will be called once per complete "click". If you need to detect a button being held down for a length of time, use [[OnMouseDown|onMouseDown]].<br> | ||
| | Mouse Buttons:<br>ID 0: Left button.<br>ID 1: Right button.<br>ID 2: Wheel button. | ||
|cancel = false | |||
}} | }} |
Latest revision as of 20:28, 19 November 2022
Event
Client Only
Online and Offline
Not Cancellable
Available since Client 1.0.0
onMouseUp(Event event, int mouse, int button)
The onMouseUp event is invoked when a mouse button is released.
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 released. |
Attributes
const | This event cannot be cancelled. |
Notes
- This event will be called once per complete "click". If you need to detect a button being held down for a length of time, use onMouseDown.
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