OnMouseDown: Difference between revisions

From GTA Connected
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:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = onMouseDown
|side = client
|type = event
|type = event
|name = onMouseDown
|games = iii vc sa iv
|usage = a mouse button is pressed down
|desc = a mouse button is pressed down
|callbackParameters = Event event, int mouse, int button
|arg1 = int mouse The ID of the mouse.
|parameter1 = int mouse The ID of the mouse.
|arg2 = 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.
|note = Mouse Buttons:<br>ID 0: Left button.<br>ID 1: Right button.<br>ID 2: Wheel button.
|cancellable = false
|cancel = false
}}
}}

Latest revision as of 20:28, 19 November 2022

Event Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Not Cancellable

Available since Client 1.0.0

onMouseDown(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

icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseConnected
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseDisconnected
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseDown
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseLeave
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseMove
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseUp
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnMouseWheel