added spaceball support for moving the head in 6dof