Skip to main content

Class: Mouse

Defined in: livelink.js/sources/inputs/Mouse.ts:8

Methods

enableOnViewport()

enableOnViewport(params: {
viewport: Viewport;
}): void

Defined in: livelink.js/sources/inputs/Mouse.ts:58

Enables mouse input on the given viewport. Increases the reference count of the viewport usage. Each call to this method should be matched with a call to release.

Parameters

ParameterTypeDescription
params{ viewport: Viewport; }
params.viewportViewportThe viewport to enable mouse input on.

Returns

void


disableFromViewport()

disableFromViewport(params: {
viewport: Viewport;
}): void

Defined in: livelink.js/sources/inputs/Mouse.ts:93

Decreases the reference count of the viewport usage. Each call to this method should be matched with a call to setup. If the reference count reaches 0, the mouse input is disabled for the viewport.

Parameters

ParameterTypeDescription
params{ viewport: Viewport; }
params.viewportViewportThe viewport to disable mouse input on.

Returns

void