registering event methods question
in
Library and Tool Development
•
3 years ago
Hi,
first of all: nice new forum
I'm working on the next version of the proscene library and I want to implement my drawing and event handling methods using the processing register mechanism discussed here (which I found pretty neat and useful ). I have two questions:
1. I have no problem with the keyboard and the main mouse events, but Is there a way to handle the mouse wheel? Otherwise I need to declare my main class as:
- public class Scene implements MouseWheelListener, PConstants { ...
2. I have some drawing stuff that I also want to register at the papplet (in order to avoid the scene.beginDraw()/scene.endDraw() calls when using my library). However, if I register my drawing at the pre() nothing gets drawn. If I register it at the draw(), it gets drawn but I get some visual artifacts. I would like to try my drawing at the pre() (or just before the papplet draw() method is called) to check if it works fine and I was wondering if it is possible?
Cheers,
Jean Pierre
1