benilla-re systems structs docs

CCamera::ArmAutoReturn

function · uicamera · primitive

Address
0x510960 · 1640 bytes, up to 0x510fc7
Signature
void __thiscall (CCamera *this, CInputControl *input, bool stopping)
Meaning
Picks the input state and arms the yaw, pitch and pivot bias to return to the view
Confidence
verified, proof one
Finding
uicamera/follow#the-input-state
Test
ui::glue_510960_arith

Finding: The input state in uicamera: following and the auto-return

0x510960 turns the command mask MF and the mode word into a set of states. Fear is mode bit 12. Turn holds when a turn key (0x300) or the right mouse button (bit 0) is down. Strafe holds for a strafe key (0xc0) or the right button with a turn key. Move holds for a move key (0x1030) or both mouse buttons (bits 0 and 1). Track is mode bit 8. Stop is the second argument. Idle holds when no move, strafe or turn key is down and none of the external-movement bits 0xf00000 is set. The highest state wins, in the order Fear, Turn, Strafe, Move, Track, Stop, Idle. With no state nothing is armed.

The derivation is in the doc.

Callers 4

Callees 14

Calls and jumps by a bare address, from tables/calls.tsv.