Add event listener based on event name and OccViewer.IObservableCallback or regular function callback.
name of event
callback
It will create C++ raw pointer callback wrapper. To free allocated memory when it doesn't needed any more call delete function of created object or call removeEventListener with theToClearData = true.
name
Return the event by its name. If event doesn't exists it will create new one.
name of event.
the observable.
Get last mouse event info.
last mouse event info
Unsubscribe OccViewer.IObservableCallback or function based on event name.
name of event
callback to unsubscribe
Optional
theToClearData: booleanFrees IObservableCallback memory (true by default). Makes sense only IObservableCallback.
Event Manager is a global object accessible via OccViewer.eventManager, responsible for managing event handlers (subscribing and unsubscribing callbacks).