The option to use CursorFreelookCentering will cause the camera to jolt the equivalent vector to the centered cursor position from where you click (with either left or right click) on screen. By default the offset (CursorCenteredYPos) is set to 0.6, so if you click right in the center horizontally, and slightly up vertically, the camera does not jolt.
The camera will instantly snap in the opposite direction of the cursor offset from this centered position, which means it's the same as holding the mouse button down, and then moving the cursor that same distance to the center point. If I place the cursor slightly to the left of center, it will snap right, and vice versa.
This problem manifests in multiple ways:
Simply /console CursorFreelookCentering 1 from a fully default cvar load will demonstrate the issue.
Calling MouselookStart() with free look centering enabled.
Using combined input with a gamepad stick and a regular mouse (e.g. hybrid devices such as Logitech G13 or Razer Tartarus)
Using the touchscreen to click on something on a Steam Deck or ASUS Rog Ally while in gamepad mode.
The option to use
CursorFreelookCentering
will cause the camera to jolt the equivalent vector to the centered cursor position from where you click (with either left or right click) on screen. By default the offset (CursorCenteredYPos
) is set to0.6
, so if you click right in the center horizontally, and slightly up vertically, the camera does not jolt.The camera will instantly snap in the opposite direction of the cursor offset from this centered position, which means it's the same as holding the mouse button down, and then moving the cursor that same distance to the center point. If I place the cursor slightly to the left of center, it will snap right, and vice versa.
This problem manifests in multiple ways:
/console CursorFreelookCentering 1
from a fully default cvar load will demonstrate the issue.MouselookStart()
with free look centering enabled.Problem occurs on: