Sg2.9
ToolEvent
Packages RSS

The ToolEvent object is received by the Tool's mouse event handlers tool.onMouseDown, tool.onMouseDrag, tool.onMouseMove and tool.onMouseUp. The ToolEvent object is the only parameter passed to these functions and contains information about the mouse event.

Sample code:

function onMouseUp(event) {
	// the position of the mouse when it is released
	print(event.point);
}

Properties