Repository navigation
KBM: fix camera whip on focus regain, add absolute mouse support - #1059
saurabhbhoir456 wants to merge 4 commits into
Conversation
- Issue xcl-dev#963: Use real dt for velocity rate calculation, clamp only for smoothing - Issue xcl-dev#962: Add last_abs field for absolute mouse coordinate delta calculation - Issue xcl-dev#961: Canonicalize game_root path in VFS (handles UNC paths) Add unit tests for all three fixes. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
On For #962, a single shared OpenAI Codex (GPT-6.2 Sol) assisted with verification. |
|
Two contributors checked independently and found that #1066 #1522 solves the same problem (for #963) in a different way: #1607, group D66. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
PR #1059 verificationKBM changes mouse velocity smoothing after long input gaps and adds absolute mouse handling. The PR diff also changes UNC game-root canonicalization in
Tested
Not tested
AI use
|
|
At head There is an extra Checked on Linux, Wine 10.0, Rust 1.98.1 ( |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
— Devin |
|
@saurabhbhoir456 this is slop |
| let mut g = MOUSE.lock().unwrap_or_else(|e| e.into_inner()); | ||
| let m = g.get_or_insert_with(|| Mouse { last: Instant::now(), velocity: Velocity::default(), wheel: Wheel::default(), wheel_rest: 0 }); | ||
| if let Some((last_x, last_y)) = m.last_abs { | ||
| let dx = raw.last_x - last_x; |
There was a problem hiding this comment.
Could the absolute coordinates be converted to display coordinates before these differences are added to DX/DY? For MOUSE_MOVE_ABSOLUTE, lLastX/lLastY are normalized to 0–65535, not pixel deltas; Windows also uses MOUSE_VIRTUAL_DESKTOP to select the coordinate surface. Treating these values as relative counts makes sensitivity depend heavily on display resolution and can produce a huge velocity when the pointer moves across the surface. Please map absolute positions to screen coordinates before computing deltas and add tests for both coordinate surfaces. AI-assisted review: I checked the Windows RAWMOUSE definition, but I did not run tests.
Add unit tests for all three fixes.
What is in it
Tested
cargo test --workspace -- --test-threads=4: N passed, N failed, N ignored (SKIPPED GPU tests: …)Regression run
main:
PR:
Not tested
AI use