Class: MouseHandler

MouseHandler(options)

new MouseHandler(options)

A handler for mouse events within a 3D viewer.

Parameters:
Name Type Description
options

object with following keys:

  • renderer - the main renderer
  • camera - the main camera in the scene
  • rootObject - the root object to check for mouse events
  • fallbackTarget - the fallback target, e.g., the camera controls
Source:

Methods

notify(target, type, event3D)

Notify the listener of the type of event that occurred.

Parameters:
Name Type Description
target

the target of the event

type

the type of event that occurred

event3D

the 3D mouse even information

Source:
Returns:

if an event was canceled

processDomEvent(domEvent)

Process the particular DOM even that has occurred based on the mouse's position in the scene.

Parameters:
Name Type Description
domEvent

the DOM event to process

Source: