Script::ToggleMouseMove
function · uicamera · orchestration
- Address
0x50b5a0· 15 bytes, up to0x50b5ae- Signature
int __fastcall (lua_State *L)- Meaning
- Toggles mouselook on the active camera through 0x50f910
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 2
- GetActiveCamera ui
- CCamera::ToggleMouselook uicamera
Calls and jumps by a bare address, from tables/calls.tsv.