registerMouseEvent in processing sketch
in
Programming Questions
•
10 months ago
I try to isolate a problem i have.
The problem is within a library i write.
Processing has a boolean mousePressed for example, but there is no such thing for mouseDragged etc.
Trying to isolate i run into a problem very fast, maybe because it's a inner class?
in 2.07 i get
java.lang.NoSuchMethodException
and in 1.5.1 i get stuff about public.
The problem is within a library i write.
Processing has a boolean mousePressed for example, but there is no such thing for mouseDragged etc.
Trying to isolate i run into a problem very fast, maybe because it's a inner class?
in 2.07 i get
java.lang.NoSuchMethodException
and in 1.5.1 i get stuff about public.
- MouseThing mouseThing;
- void setup() {
- size(800, 600);
- frameRate(1);
- mouseThing = new MouseThing(this);
- }
- void draw() {
- background(255);
- }
- class MouseThing {
- MouseThing(PApplet p) {
- p.registerMouseEvent(this);
- }
- public void mouseEvent(MouseEvent event) {
- }
- }
1