Hi,
yes i testet on 1.5.1
The problem with your code is only logical, you only check for double-clicks when there was no left mouse-click.
So it can't detect left double-clicks.
Your code actually works when you double-click the right mouse-button.
to achieve what you want, you change your function to something like this:
- void mousePressed()
{
if (mouseButton == LEFT) // left button
{
if (mouseEvent.getClickCount()==2) { // double-click
println("double-click");
}
else {
println("left-click");
}
}
else if (mouseButton == RIGHT) // right button
{
println("right");
}
}