Click or drag to resize
SoEventBuilderGetKeyPressEvent Method

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

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public SoKeyboardEvent GetKeyPressEvent(
	SoKeyboardEventKeys key,
	bool isAltDown,
	bool isCtrlDown,
	bool isShiftDown
)

Parameters

key
Type: OIV.Inventor.EventsSoKeyboardEventKeys

key that have been pressed.

isAltDown
Type: SystemBoolean

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

isCtrlDown
Type: SystemBoolean

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

isShiftDown
Type: SystemBoolean

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

Return Value

Type: SoKeyboardEvent
Remarks

The returned object should not be destroyed.

See Also