I am not able to add an event listener to a flycontrols.js instance in three.js -


i switched controls in script writing trackball controls fly controls. added event handler trackballcontrols without problem.

controls.addeventlistener( 'change', function () {      camerachanged = true;      signals.camerachanged.dispatch( camera );     render();  } ); 

however when tried add event listener flycontrols instance received error:

object [object object] has no method 'addeventlistener'  

i assume flycontrols class doesn't have mechanism add event listeners. wondering how go adding it.

flycontrols doesn't have eventdispatcher implemented.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -