Hello!
I'm trying to create a method that is executed only when both the left and right mouse button are pressed, so I wanted to use Greenfoot.getMouseInfo().getButton(), as it's also used in other (not relevant to this post) parts of the code. However, as this gives back only a single value (in this case 1 or 3), it can't be both at the same time, so I don't know how I could register both being clicked at the same time...
By the way, I also have a command that executes on left click only and am planning on adding one for right click only as well, so the code for both being clicked should only execute once one of them is released while the other is held down.

