What is the use of getButton() and how does it works?
What read api but i can't understand (


1 2 3 4 5 6 7 8 | if (Greenfoot.mouseClicked( this )) { switch (Greenfoot.getMouseInfo().getButton()) { case 1 : ; /* do something */ break ; case 3 : ; /* do something else */ break ; } } |