@Override
	public void mousePressed(MouseEvent e) {
		idleTime = 0;
		clickX = e.getX();
		clickY = e.getY();
		long oldTime = clickTime;
		clickTime = System.currentTimeMillis();
		if (e.isControlDown()) {
			setType(isRightButton(e) ? ClickType.CTRL_RIGHT : ClickType.CTRL_LEFT);
		} else {
			if (clickTime - oldTime < 250) {
				setType(ClickType.DOUBLE);
			} else {
				setType(e.isMetaDown() ? ClickType.RIGHT_CLICK : ClickType.LEFT_CLICK);
			}
		}
		updateMouse();
	}