as you can see from TFGuy44 Code, peasyCam is not the only way to have 3D rotation.
He wrote his own rotation based on mouse.