Axis lock in VR

i want to lock rotaion in one axis in VR mode. can anbody help meout with this..
thanks in advance..