public static short getEventMouseButton(int eRefHandle) {
private static short getEventMouseButton(int eRefHandle) {
	public static short getEventMouseButton(int eRefHandle) {		short[] mouseButtons= new short[1];		if (OS.GetEventParameter(eRefHandle, OS.kEventParamMouseButton, OS.typeMouseButton, null, null, mouseButtons) == OS.kNoErr) {				short button= mouseButtons[0];			switch (button) {			case OS.kEventMouseButtonPrimary:		// left mouse button				if (EMULATE_RIGHT_BUTTON) {					if ((getEventModifiers(eRefHandle) & OS.controlKey) != 0)						return 3;				}				return 1;			case OS.kEventMouseButtonSecondary:	// right mouse button				return 3;			case OS.kEventMouseButtonTertiary:		// middle mouse button				return 2;			default:				return button;			}		}		return 0;	}