public void update()
	{
		float mouseX = Input.getMousePosition().getX();
		float mouseY = Input.getMousePosition().getY();
		
		lastMouseHover = mouseHover;
		
		if(mouseX < pos.getX() || mouseX  > pos.getX() + size.getX() || mouseY < pos.getY() || mouseY > pos.getY() + size.getY())
			mouseHover = true;
		else
			mouseHover = false;
		
		if(mouseHover && !lastMouseHover)
			onMouseEnter();
		else if(!mouseHover && lastMouseHover)
			onMouseLeave();
	}