@Override
    public void control(float delta) {
    	updateMousePos();
    	if(Gdx.input.isButtonPressed(Input.Buttons.RIGHT)){
    		rightDown = true;
    		rightDown(delta);
    	}
    	else if(rightDown){
    		rightDown = false;
    		onRightReleased();
    	}
    	if(Gdx.input.isButtonPressed(Input.Buttons.LEFT)){
			// left click
			// select starting node 
			leftDown = true;
			leftDown(delta);
		}
		else if(leftDown){
			// left released
			// set target
			leftDown = false;
			onLeftReleased();
		} 
    }