What is the use of getButton() and how does it works?
What read api but i can't understand (
if (Greenfoot.mouseClicked(this))
{
switch (Greenfoot.getMouseInfo().getButton())
{
case 1 : ; /* do something */ break;
case 3 : ; /* do something else */ break;
}
}