Hi guys, looking for a way to check for a click of the left mouse button and the right mouse button at the same time. How would I go about doing this?


1 2 3 4 5 6 7 8 9 10 11 12 | if (Greenfoot.mouseClicked( null )) { int btnNum = Greenfoot.getMouseInfo().getButton(); if (btnNum == 1 ) // left button { ; } else if (butNum == 3 ) // right button { ; } } |