Mouse pitch reset

in a example template if i move the mouse before alt+enter for stereo then in stereo mode the camera pitch its a annoying, if a press again alt+enter and exit normal mode the camera pitch reset,

i want the same behavior when i enter in streo mode, what its the best way to fix that?