Added a bunch of code for dragging / rotating camera.