public void mouseEvent(MouseEvent event) {
		int action = event.getAction();

		// mouseX = event.getX();
		// mouseY = event.getY();

		// if ((action == MouseEvent.DRAG) || (action == MouseEvent.MOVE)) {
		// pmouseX = emouseX;
		// pmouseY = emouseY;
		// mouseX = event.getX();
		// mouseY = event.getY();
		// }

		if (event.getButton() == PConstants.LEFT) {
			switch (action) {
			case MouseEvent.CLICK:
				mouseClicked();

				for (Control control : controls) {
					control.update();
				}

				break;
			case MouseEvent.DRAG:
				mouseDragged();
				break;
			case MouseEvent.MOVE:
				mouseMoved();
				break;
			default:
				break;
			}
		}

		if ((action == MouseEvent.DRAG) || (action == MouseEvent.MOVE)) {
			emouseX = mouseX;
			emouseY = mouseY;
		}
	}