private final int getMouseButton(MouseEvent mouseevent) {
	anInt7436++;
	int modifiers = mouseevent.getModifiers();
	boolean isButton1 = (0x10 & modifiers) != 0;
	boolean isButton2 = (modifiers & 0x8) != 0;
	boolean isButton3 = (0x4 & modifiers) != 0;
	if (isButton2 && (isButton1 || isButton3))
	    isButton2 = false;
	if (isButton1 && isButton3)
	    return 4;
	if (isButton1)
	    return 1;
	if (isButton2)
	    return 2;
	if (isButton3)
	    return 4;
	return 0;
    }