Here's the `invert mouse` setting from Quake2[1], though, I know for certain that Duke3D and Doom had the same option. I feel like every FPS I've ever played has had it as an option.
Now, to be judgemental, anyone who enables the invert option is an obvious psychopath. Although, to be fair, everyone thinks I'm a psychopath for using Mouse2 for Forward.
"Shearing" was added for up-down look in Heretic, for the non-Doom engine descendants Duke Nukem 3D and Rise of The Triad supported it as well. I don't remember if it could be bound to mouse movement in any of these games.