CameraEnterFreelook
function · uicamera · primitive
- Address
0x50fe30· 171 bytes, up to0x50feda- Signature
void __thiscall (CCamera *this)- Meaning
- Hides the cursor, switches to relative mouse mode and begins the world frame's mouselook
- Confidence
- verified, proof one
- Finding
- ui/mouseover#mouselook
Finding: Mouselook in ui: the world under the pointer
Entering mouselook, 0x50fe30 sets bit 0 of the camera's mode word at +0x90, hides the hardware cursor
(0x58b590 with 0), switches the device to relative mouse mode (0x420540 with 1, 0) and calls 0x493070.
That sets bit 1 of the world frame's word at +0x38c (0x483e80), hides every nameplate (0x60f830 with 1),
clears a published mouseover, and then makes the world frame the hovered frame. Leaving, 0x50fdd0 clears the mode bit,
shows the cursor and calls 0x493090, which clears the world frame bit and shows the nameplates again
(0x483e70) and asks for a new hover pick. Bit 1 of +0x38c is read at one place, the classifier
(ui/worldcursor#classifying-a-hovered-object).
The derivation is in the doc.
Callers 1
- CCamera::EnterMouselookThunk uicamera
Callees 6
- EventSetMouseMode core
- ValidateStatusLevel sysmsg
- EnterWorldMouselook ui
- CCamera::EnterAbsoluteFrame uicamera
- CCamera::PushGroundPitch uicamera
- SetCursorShown gx
Calls and jumps by a bare address, from tables/calls.tsv.