input
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 66 | 55 (83%) | 54 (81%) | 1 (1%) | 3 (4%) |
| globals | 6 | 6 (100%) | 6 (100%) | 1 (16%) | – |
| structs | 1 | 1 (100%) | 1 (100%) | 0 (0%) | – |
| fields | 7 | 7 (100%) | 5 (71%) | 3 (42%) | – |
| all | 80 | 69 (86%) | 66 (82%) | 5 (6%) | 3 (4%) |
Docs
input
The world input code: the key-binding commands that drive the mouse and the player, and the state they share.
The object file's functions pass the source path ...\UIUtil\InputControl.cpp and a line number
in their calls. Its state is one CInputControl. A table pairs the 26 movement and mouse binding
commands with their handlers. Each press or release goes through 0x515090 to the press handler
0x514840 or the release handler 0x514b70, which track the held commands, the mouse travel
since the first press, and the click the press armed.
This doc covers the mouse gesture as far as it decides a click, the movement commands and the per-frame input tick that turns the command bits into movement.
Closure
13 roots. A walk of direct calls and jumps from them reaches 21 of the 66 functions the system owns, and stops at 35 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- CInputControl::SetCommands input
- CInputControl::AccumulateMotion input
- CInputControl::ReleaseAll input
- CInputControl::IsDragging input
- GetInputControl input
- Script::TurnOrActionStart input
- Script::CameraOrSelectOrMoveStart input
- CInputControl::Tick input
- CanControlUnit input
- MayTranslate input
- MayTurn input
- CInputControl::EmitForwardAxis input
- Script::ToggleAutoRun input
Boundary
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetActiveCamera ui
- PickObjectUnderCursor ui
- DispatchWorldClick ui
- CheckActivePlayer ui
- FireTutorial ui
- AcknowledgeTutorial ui
- CCamera::EnterMouselookThunk uicamera
- CCamera::LeaveMouselook uicamera
- CCamera::MouseTurn uicamera
- CCamera::CommitFacing uicamera
- CCamera::ArmAutoReturn uicamera
- CCamera::SetTrackFlag uicamera
- CCamera::SetBobbing uicamera
- 0x58a1c0 gx
- ClearAfk objectlayer
- IsActivePlayerUnit objectlayer
- CGUnit_C::SendStandState objectlayer
- CGUnit_C::MoveStart objectlayer
- CGUnit_C::MoveStop objectlayer
- CGUnit_C::StrafeStart objectlayer
- CGUnit_C::StrafeStop objectlayer
- CGUnit_C::TurnStart objectlayer
- CGUnit_C::TurnStop objectlayer
- CGUnit_C::PitchStart objectlayer
- CGUnit_C::PitchStop objectlayer
- CGUnit_C::IsCurrentAnimationFlag80 objectlayer
- CGUnit_C::StopAutoMove objectlayer
- MovementGetLastTickTime collision
- GetCastSpellId spell
- IsSpellTargeting spell
- CancelCast spell
- SendCancelChannelling spell
Functions 66
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x513bb0 | 0x513bb0 | orchestration | inferred | ||
0x513bc0 | 0x513bc0 | orchestration | inferred | ||
0x513bd0 | Script::Jump | orchestration | inferred | ||
0x513d50 | Script::ToggleRun | orchestration | verified, proof one | ||
0x513de0 | Script::ToggleAutoRun | primitive | verified, proof one | ✓ | |
0x513e20 | Script::MoveForwardStart | orchestration | verified, proof one | ||
0x513e50 | Script::MoveForwardStop | orchestration | verified, proof one | ||
0x513e80 | Script::MoveBackwardStart | orchestration | verified, proof one | ||
0x513eb0 | Script::MoveBackwardStop | orchestration | verified, proof one | ||
0x513ee0 | Script::TurnLeftStart | orchestration | verified, proof one | ||
0x513f10 | Script::TurnLeftStop | orchestration | verified, proof one | ||
0x513f40 | Script::TurnRightStart | orchestration | verified, proof one | ||
0x513f70 | Script::TurnRightStop | orchestration | verified, proof one | ||
0x513fa0 | Script::StrafeLeftStart | orchestration | verified, proof one | ||
0x513fd0 | Script::StrafeLeftStop | orchestration | verified, proof one | ||
0x514000 | Script::StrafeRightStart | orchestration | verified, proof one | ||
0x514030 | Script::StrafeRightStop | orchestration | verified, proof one | ||
0x514060 | Script::PitchUpStart | orchestration | verified, proof one | ||
0x514090 | Script::PitchUpStop | orchestration | verified, proof one | ||
0x5140c0 | Script::PitchDownStart | orchestration | verified, proof one | ||
0x5140f0 | Script::PitchDownStop | orchestration | verified, proof one | ||
0x514120 | Script::TurnOrActionStart | orchestration | verified, proof one | ✓ | |
0x514160 | Script::TurnOrActionStop | orchestration | verified, proof one | ||
0x514190 | Script::CameraOrSelectOrMoveStart | orchestration | verified, proof one | ✓ | |
0x5141d0 | Script::CameraOrSelectOrMoveStop | orchestration | verified, proof one | ||
0x514210 | Script::MouselookStart | orchestration | verified, proof one | ||
0x514240 | Script::MouselookStop | orchestration | verified, proof one | ||
0x514270 | Script::IsMouselooking | orchestration | verified, proof one | ||
0x5142a0 | CreateInputControl | orchestration | verified, proof one | ||
0x5142f0 | JoystickCallback | orchestration | verified, proof one | ||
0x514340 | RegisterInputScriptFunctions | orchestration | verified, proof one | ||
0x514370 | UnregisterInputScriptFunctions | orchestration | verified, proof one | ||
0x514390 | 0x514390 | orchestration | inferred | ||
0x5143c0 | CInputControl::CInputControl | orchestration | verified, proof one | ||
0x5143e0 | GetInputControl | orchestration | verified, proof one | ✓ | |
0x5143f0 | 0x5143f0 | orchestration | inferred | ||
0x514400 | CInputControl::AccumulateMotion | primitive | verified, proof one | ✓ | ✓ |
0x514490 | CInputControl::ApplyAfterRelease | orchestration | verified, proof one | ||
0x5144c0 | CInputControl::ReleaseAll | orchestration | verified, proof one | ✓ | |
0x5144e0 | CanControlUnit | primitive | verified, proof one | ✓ | |
0x514560 | MayTranslate | primitive | verified, proof one | ✓ | |
0x5145b0 | MayTurn | primitive | verified, proof one | ✓ | |
0x5145e0 | MayMouseTurn | primitive | verified, proof one | ✓ | |
0x514620 | 0x514620 | primitive | inferred | ||
0x514630 | CInputControl::ClearAutoRunLatch | primitive | verified, proof one | ||
0x514640 | CInputControl::Tick | orchestration | verified, proof one | ✓ | |
0x514810 | CInputControl::ArmClick | orchestration | verified, proof one | ✓ | |
0x514840 | CInputControl::PressCommands | orchestration | verified, proof one | ✓ | |
0x514ae0 | CInputControl::IsDragRelease | primitive | verified, proof two | ✓ | |
0x514b40 | CInputControl::IsDragging | orchestration | verified, proof one | ✓ | |
0x514b70 | CInputControl::ReleaseCommands | orchestration | verified, proof one | ✓ | |
0x514da0 | CInputControl::EmitForwardAxis | primitive | verified, proof one | ✓ | |
0x514e80 | CInputControl::EmitStrafeAxis | primitive | verified, proof one | ✓ | ✓ |
0x514f50 | CInputControl::EmitTurn | primitive | verified, proof one | ✓ | |
0x515010 | CInputControl::EmitPitch | primitive | verified, proof one | ✓ | |
0x515090 | CInputControl::SetCommands | orchestration | verified, proof one | ✓ | |
0x5151b0 | CInputControl::YawGate | primitive | verified, proof one | ||
0x515250 | CInputControl::PitchGate | primitive | verified, proof one | ||
0x5152e0 | CInputControl::HandOffFacing | primitive | verified, proof one | ||
0x515330 | CInputControl::HandOffPitch | primitive | verified, proof one | ✓ | |
0x515390 | 0x515390 | orchestration | inferred | ||
0x5153a0 | 0x5153a0 | primitive | inferred | ||
0x5153b0 | 0x5153b0 | orchestration | inferred | ||
0x5153c0 | 0x5153c0 | primitive | inferred | ||
0x5153e0 | 0x5153e0 | orchestration | inferred | ||
0x5153f0 | 0x5153f0 | primitive | inferred |
Globals 6
| address | name | type | confidence |
|---|---|---|---|
0x808b5c | s_dragTravel | float | verified, proof two |
0x8500b4 | s_joystickHandle | uint32_t | verified, proof one |
0x8500b8 | s_bindingCommands | void *[52] | verified, proof one |
0x850340 | s_inputControlSourcePath | char[53] | verified, proof one |
0x850378 | s_inputControlTag | char[51] | verified, proof one |
0xbe1148 | s_inputControl | CInputControl * | verified, proof one |