Restrict controller pitch rotation

Did you ever find a way to make this work with the HMD? Been many fruitless months trying to get this working on the HMD.