Click or drag to resize
RenderAreaListenerOnKeyDown Method

Triggered when a KeyDown event is received from the client.

Namespace: OIV.RemoteViz.Rendering
Assembly: OIV.RemoteViz (in OIV.RemoteViz.dll) Version: 2024.2.0.0 (2024.2.0)
Syntax
public virtual bool OnKeyDown(
	RenderArea renderArea,
	Connection sender,
	int x,
	int y,
	SoKeyboardEventKeys key
)

Parameters

renderArea
Type: OIV.RemoteViz.RenderingRenderArea

: the OIV.RemoteViz.Rendering.RenderArea that will process the event

sender
Type: OIV.RemoteViz.RenderingConnection

: the connection that sent the event

x
Type: SystemInt32

: horizontal coordinate

y
Type: SystemInt32

: vertical coordinate

key
Type: OIV.Inventor.EventsSoKeyboardEventKeys

: pressed key

Return Value

Type: Boolean

true to process the event, this will apply an OIV.Inventor.Actions.SoHandleEventAction to the scene graph. This return value does not have any effect when the OIV.RemoteViz.Rendering.ServiceSettings.RunModes.INDEPENDENT_SERVICE mode is enabled. If there are many listeners, the logical operator OR will be applied on all the returned value of listeners. If there are no listeners to call, the event will be processed.

Remarks

Default behavior : Accept the event by returning true.

See Also