CCamera::ToggleMouselook
function · uicamera · orchestration
- Address
0x50f910· 22 bytes, up to0x50f925- Signature
void __thiscall (CCamera *this)- Meaning
- Leaves mouselook when in it, else enters it
- Confidence
- verified, proof one
- Finding
- uicamera/follow#leaving-mouselook
Finding: Leaving mouselook in uicamera: following and the auto-return
When the last primary button is released, 0x514b70 calls 0x50f940(extra) with its third argument. The camera leaves mouselook (ui/mouseover#mouselook), sets mode bit 5 when the argument is nonzero and clears it otherwise,
and copies the live yaw, pitch and pivot bias into their transition targets so nothing returns to the view. While bit 5 is set the auto-return is refused (uicamera/cvars#clear-and-band-tests).
ToggleMouseMove runs 0x50f910: it leaves mouselook with the argument 0 when mode bit 0 is set and enters it otherwise.
The derivation is in the doc.
Callers 1
- Script::ToggleMouseMove uicamera
Callees 2
- CCamera::EnterMouselookThunk uicamera
- CCamera::LeaveMouselook uicamera
Calls and jumps by a bare address, from tables/calls.tsv.