I was wondering if it would be possible to allow this approach:
gui.add( new ControllerVector2D( vector ) );
Maybe with a patch like this?
this.add = function() {
var object = arguments[ 0 ];
if ( object instanceof Controller ) {
controllers.add( object );
return;
}
// rest of the code that figures if object is a number, string, etc
}
This would allow people to create their own custom controllers without having to mess up with the GUI internal code.
I was wondering if it would be possible to allow this approach:
Maybe with a patch like this?
This would allow people to create their own custom controllers without having to mess up with the GUI internal code.