benilla-re systems structs docs

MouseSpeedCallback

function · client

Address
0x402ec0 · 30 bytes, up to 0x402edd
Signature
bool __fastcall (CVar *cvar, const char *oldText, const char *newText, void *callbackArg)
Meaning
Applies a new mouseSpeed value to the host pointer speed and returns 1
Confidence
verified, proof one
Finding
core/input#mouse-speed-and-num-lock

Finding: Mouse speed and Num Lock in core: window input

At startup the window code saves GetAsyncKeyState(VK_NUMLOCK) and the Windows mouse speed. The client's mouse speed setting, clamped to [0.1, 2] and times 10 truncated, becomes the Windows mouse speed while the window is active; on deactivation and at shutdown the saved speed comes back, and at shutdown a Num Lock key-down is sent when GetAsyncKeyState(VK_NUMLOCK) differs from the saved value.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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