Get mouse direction in locked

I’m new to Unity, and I want to know how you would get the direction the user’s TRYING to move the mouse when the mode is Locked.

I believe I read something somewhere that had something to do with this, but could not find the source again.

After I know how to get the direction the user’s trying to move the mouse, I plan on rotating the camera so the imaginary mouse (where the mouse WOULD be) would be centered.

Input.GetAxisRaw() should do the trick, that should return mouse movement values even if it is set to Locked.