CInputControl::ReleaseCommands
function · input · orchestration
- Address
0x514b70· 559 bytes, up to0x514d9e- Signature
uint32_t __thiscall (CInputControl *this, uint32_t commands, uint32_t time, uint32_t extra)- Meaning
- Releases command bits; on the last primary, dispatches the armed click unless 0x514ae0 says drag
- Confidence
- verified, proof one
- Finding
- input#click-versus-drag
Finding: Click versus drag in input
When the last held primary command is released, the click is dispatched only if 0x514ae0
returns 0. With t the release time minus the press time, as a wrapping int32 in
milliseconds: it returns 1 when t ≥ 800; otherwise, when either travel sum is at least 8.0, it
returns 1 if t ≥ 200 and 0 if not; otherwise 0. So a release within 200 ms always clicks, and
one within 800 ms clicks while both sums stay under 8.0. The sums are raw mouse motion scaled by
the screen aspect: 8.0 is 10 raw units of x or 13.33 of y at 4:3, and 9.18 or 16.32 at 16:9.
The derivation is in the doc.
Callers 2
- CInputControl::ReleaseAll input
- CInputControl::SetCommands input
Callees 7
- GetActiveCamera ui
- DispatchWorldClick ui
- CCamera::LeaveMouselook uicamera
- CCamera::ArmAutoReturn uicamera
- CCamera::SetTrackFlag uicamera
- CCamera::SetBobbing uicamera
- CInputControl::IsDragRelease input
Calls and jumps by a bare address, from tables/calls.tsv.