Hi there,
I'm currently porting a lib to Processing 2.x and I have no error but this one.
"There is not public mouseEvent() method in the class xxxx"
Actually, I have one:
- public void mouseEvent(MouseEvent event) {
- int id = event.getID();
- switch (id) {
- case MouseEvent.MOUSE_PRESSED:
- mousePressed();
- break;
- case MouseEvent.MOUSE_RELEASED:
- mouseReleased();
- break;
- case MouseEvent.MOUSE_CLICKED:
- mouseClicked();
- break;
- case MouseEvent.MOUSE_DRAGGED:
- mouseDragged();
- break;
- case MouseEvent.MOUSE_MOVED:
- mouseMoved();
- break;
- }
and I'm registering the method like that:
- parent.registerMethod("mouseEvent", this);
Obviously, I should miss something ...
Anyone ?
1