Strange MouseWheel errors in new versions of Processing ( previously working code! )
Answered
- Need more info
- Answered
- Working on it
in
Programming Questions
•
3 years ago
Here's my test program. It used to work under old versions of Processing and now breaks with:
"The type sketchName.MouseWHeelListnerClass must implement the inherited abstract method MouseWheelListner.mouseWheelMoved(MouseWheelEvent)". I'm pretty sure it does. I've checked for capitalization errors and the like. This code used to work, now it breaks. Does anyone have any ideas on how to make this work?
I just tested it and it works fine in Processing Beta 148. Why not now?
-
import java.awt.event.MouseWheelListener;
void setup(){}void draw(){}
MouseWheelListenerClass wheel=new MouseWheelListenerClass();
public class MouseWheelListenerClass implements MouseWheelListener {public MouseWheelListenerClass() {addMouseWheelListener(this);}public void mouseWheelMoved(MouseWheelEvent e) {println(e.getWheelRotation());}}
1