s_mouseTurnScaleY
global · uicamera
- Address
0x808ac0· 4 bytes, up to0x808ac3- Type
const float- Meaning
- Holds 1/600, the factor MouseTurn multiplies the vertical mouse movement by
- Confidence
- verified, proof one
- Finding
- uicamera/driver#turning-with-the-mouse
Finding: Turning with the mouse in uicamera: the follow camera
0x50fee0(dx, dy) turns the camera by a mouse step. It sets mode bit 6. The event's offsets arrive multiplied by the aspect constants K1 and K2 (0x766fb1; input#click-versus-drag), and 0x41ade0 divides them out, leaving the pixel offsets. The
yaw step is cameraYawMoveSpeed in radians times dx times 0.00125 (1/800) and the pitch step is cameraPitchMoveSpeed in radians times dy times
1/600. The yaw is shifted by the negative of its step, the pitch by its step; mouseInvertYaw and mouseInvertPitch, when nonzero, flip the sign of the matching step.
A positive pitch step looks down (uicamera/view#pitch-units-and-sign). The caller is the input control's motion handler 0x514400, which also commits the facing (uicamera/effects#committing-the-facing).
The derivation is in the doc.