Hi, today I find this strange behavior: when in the comand size()
I set the render mode FX2D
the function mouseWheel
don’t recognize the count of wheel.
This Example Work fine
void setup() {
size(100, 100); // basic comand size()
}
void draw() {
}
void mouseWheel(MouseEvent event) {
float e = event.getCount();
println(e);
}
Now I put the render mode FX2D
and the mouseWheel don’t work:
void setup() {
size(100, 100,FX2D); // comand size with render mode FX2D
}
void draw() {
}
void mouseWheel(MouseEvent event) {
float e = event.getCount(); // getCount not recognize the wheel count
println(e);
}
in this last case the local variable event
stay always at value 0.0
It’s a normal action?
Thanks…