We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I can't use mousePressed(), mouseDragged() etc. because I need to handle mouse events in separate classes and don't want them to require explicit coding in the mouse methods of the main sketch.
I had hoped that the new Processing 2 registerMethod() approach would be the way to go, as this has been designed to be platform neutral. But unfortunately, it does not appear to be implemented in Processing.js yet.