s_savedMouseSpeed
global · core
- Address
0x884cb0· 4 bytes, up to0x884cb3- Type
uint32_t- Meaning
- Holds the Windows mouse speed saved at startup
- 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.