Right. I'm using Unity, so... The Camera rotation is acquired from its transform via GameObject.Transform.Rotation or .LocalRotation, likewise for the Oculus controller. The code I've written
here is using a combination of the controller and the headsets rotation.