In a tps/fps the yaw and pitch comes from the camera. Just cast a ray from the camera and use the vector of what it hits as your look target for ik. There is an extra step in tps though.
So basically a ray is constantly casting from the camera, if it hits something look at that point, else look an arbitrary distance ahead.