benilla-re systems structs docs

CInputControl::SetCommands

function · input · orchestration

Address
0x515090 · 284 bytes, up to 0x5151ab
Signature
uint32_t __thiscall (CInputControl *this, uint32_t commands, uint32_t press, uint32_t time, uint32_t extra)
Meaning
Sends commands to 0x514840 when press is nonzero, else to 0x514b70
Confidence
verified, proof one
Finding
input#the-commands

Finding: The commands in input

Each Lua movement function is a pair of handlers that call 0x515090(bits, press, time, 0) on the input control (0x5143e0) once 0x494a50(0) allows it (the gate that refuses a tainted caller). The bits in the word +0x4: MoveForward 0x10, MoveBackward 0x20, StrafeLeft 0x40, StrafeRight 0x80, TurnLeft 0x100, TurnRight 0x200, PitchUp 0x400, PitchDown 0x800, the mouse turn command 0x1 and the mouse camera command 0x2. ToggleAutoRun (0x513de0) sets or clears 0x1000 by inverting the current bit. Jump and ToggleRun do not use the word.

The derivation is in the doc.

Callers 29

Callees 9

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