mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-02-14 18:33:12 +08:00
The controller was overwriting keyboard lParam (containing scan code and extended key flag) with mouse coordinate calculations. The client then had to guess the extended key flag from the virtual key code alone, which fails when local and remote NumLock states differ — causing numpad keys to always behave as dedicated arrow keys via KEYEVENTF_EXTENDEDKEY. Now the controller preserves the original keyboard lParam, and the client extracts the real scan code (bits 16-23) and extended key flag (bit 24) from it, so numpad keys are correctly distinguished from navigation keys. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>