Click or drag to resize
SoEventBuilderGetMousePressEvent Method

Return an OIV.Inventor.Events.SoMouseButtonEvent corresponding to given parameters.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoMouseButtonEvent GetMousePressEvent(
	int x,
	int y,
	SoMouseButtonEventButtons buttonId,
	bool isAltDown,
	bool isCtrlDown,
	bool isShiftDown
)

Parameters

x
Type: SystemInt32

X coordinate in pixel.

y
Type: SystemInt32

Y coordinate in pixel.

buttonId
Type: OIV.Inventor.EventsSoMouseButtonEventButtons

Which mouse button has been pressed.

isAltDown
Type: SystemBoolean

Specify if Alt key was down when mouse has been pressed.

isCtrlDown
Type: SystemBoolean

Specify if Ctrl key was down when mouse has been pressed.

isShiftDown
Type: SystemBoolean

Specify if Shift key was down when mouse has been pressed.

Return Value

Type: SoMouseButtonEvent
Remarks

The returned object should not be destroyed.

See Also