Skip to content

Add input API comparison probe and results - #2

Closed
NotBadSlime wants to merge 18 commits into
mainfrom
input-api-comparison
Closed

NotBadSlime wants to merge 18 commits into
mainfrom
input-api-comparison

Conversation

@NotBadSlime

@NotBadSlime NotBadSlime commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • 鏂板 src/tools/InputApiProbe锛氬姣斾綆灞傞挬瀛愩€丷aw Input銆丷egisterHotKey銆佷袱绉嶈疆璇㈢殑瑙﹀彂鎹曡幏寤惰繜锛屼互鍙?SendInput 鍥涚鍐欐硶锛堣櫄鎷熼敭鐮併€佹壂鎻忕爜銆侀敭鐮佸姞鎵弿鐮併€乣keybd_event`銆佸悎骞舵寜涓嬫姮璧凤級鍒板彟涓€杩涚▼ Win32 绐楀彛鐨勬敞鍏ュ欢杩熴€?
  • 鏂板 scripts/summarize_input_api.py 鍜?tests/test_input_api_summary.py锛氱粺涓€缁熻涓庡垽瀹氶棬妲涳紙P50 鏀瑰杽涓嶅皯浜?100碌s锛孭99 涓庢渶澶у€间笉鍙樺樊锛岃嚦灏戝洓杞柟鍚戜竴鑷达級銆?
  • 鏂板缁撴灉鏂囨。 docs/input-api-comparison-2026-10-15.md 鍜屽悗缁伐浣滄竻鍗?docs/next-steps-latency-2026-10-15.md锛屽苟鍦ㄨ璁℃枃妗d笌 docs/current-precision-status.md 閲岃ˉ浜嗛摼鎺ャ€?

*缁撹锛? 鍦ㄨ繖鍙版満鍣ㄤ笂娌℃湁浠讳綍鍊欓€夋瘮鐜扮敤浣庡眰閽╁瓙鎴?SendInput 鏇村ソ锛屼骇鍝侀粯璁よ矾寰勪笉鍙橈紱鏈垎鏀笉淇敼浜у搧浠g爜銆?

宸茬煡灞€闄?

  • 鍙祴鍚堟垚杈撳叆锛屽崟鍙版満鍣ㄣ€?
  • 骞跺垪缁勭墿鐞嗘寜閿暟鎹病鏈夊緱鍑虹粨璁猴紙Raw Input 瀵圭墿鐞?F8 涓?0 娆★紝鍘熷洜鏈槑锛夛紝宸插垪鍏ュ悗缁竻鍗曠 2 椤广€?

Test Plan

  • python -m unittest discover -s tests -p "test_input_api_summary.py"锛?7 涓祴璇曢€氳繃
  • dotnet build src/tools/InputApiProbe/InputApiProbe.csproj -c Release锛? 涓敊璇?
  • 鍚堝苟鍚庡湪 main 涓婇噸鏂版瀯寤烘帰閽堬紝纭鏂囨。閲岀殑閾炬帴娌℃湁澶辨晥

NotBadSlime and others added 18 commits October 15, 2026 00:45
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s per hook

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
… downs

Co-authored-by: Cursor <cursoragent@cursor.com>
…put finding

Co-authored-by: Cursor <cursoragent@cursor.com>
@NotBadSlime

Copy link
Copy Markdown
Owner Author

Closing without merging. The input API comparison probe, the ETW work and all of their reports now live in https://github.com/NotBadSlime/MacroLab, which also holds the earlier precision and latency measurements. Every file this branch adds is in MacroLab (26 byte-identical apart from line endings; 4 adapted so they build and link there). The product-side cleanup is in #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant