public void mouseMoved(int x , int y) 
	{
		if ( ! trackingEnabled ) {
			return;
		}
		
		if ( xRef == -1 ) {
			xRef = x;
			yRef = y;
			return;
		}
		
		float deltaX = (x - xRef)*sensitity;
		float deltaY = (yRef-y)*sensitity;

		angleXZ += deltaX;
		
		// clamp angle to 0..360 degrees to avoid loss of precision
		if ( angleXZ >= 360.0 ) {
			angleXZ -= 360;
		}
		if ( angleXZ < 0 ) {
			angleXZ += 360;
		}
		
		angleY += deltaY;
		
		// restrict Y angle to 0 .. 89.999 degrees
		if ( (angleY >= 90.0) && (angleY <= 270.0 ) ) {
			angleY = 89.999f;
		} 
		else if ( angleY <= 0 ) {
			angleY += 360;
		}			
		
		xRef = x;
		yRef = y;
		
		moveEyeTarget();
	}