@Override
	public void input() {
		
		if (Input.isLocked())
		{
			if (Input.getKeyDown(Input.KEY_ESCAPE))
				Input.setLocked(false);
			
			yaw(-Input.getMouseDX() * sensitivity);
			pitch(Input.getMouseDY() * sensitivity);
		} else {
			if (Input.getMouseDown(Input.MOUSE_LEFT))
			{
				Input.setLocked(true);
			}
		}
		
		if (Input.getKey(Input.KEY_W))
			this.move(LocalDirection.FORWARD, 0.5f);
		if (Input.getKey(Input.KEY_S))
			this.move(LocalDirection.BACKWARD, 0.5f);
		if (Input.getKey(Input.KEY_A))
			this.move(LocalDirection.LEFT, 0.5f);
		if (Input.getKey(Input.KEY_D))
			this.move(LocalDirection.RIGHT, 0.5f);
		if (Input.getKey(Input.KEY_SPACE))
			this.move(LocalDirection.UP, 0.5f);
		if (Input.getKey(Input.KEY_LSHIFT))
			this.move(LocalDirection.DOWN, 0.5f);
	}