Keyboard/mouse: mouse look does nothing with an absolute-position mouse (RDP, VMs, tablets) #962
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#962
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Conrage on GitHub · 2026-11-24 09:35 UTC · original
The
WM_INPUThandler only adds movement whenMOUSE_MOVE_ABSOLUTEis clear:github.com/ivall/xcl@077ce40/crates/xcl/src/hle/kbm.rs (L309-L312)Remote Desktop, most virtual machines without relative-mouse integration, pen tablets and some remote-play tools send absolute coordinates. With them, the right stick never moves and nothing is logged. WASD and the buttons still work.
Repro: run a title over Remote Desktop (or in a Hyper-V or VirtualBox guest) with
keyboard_mouse = true, then move the mouse. The camera does not turn.Suggested fix: keep the last absolute position (0–65535, virtual-desktop space when
MOUSE_VIRTUAL_DESKTOPis set), add the scaled difference toDX/DY, and reset the stored position inreset_mouse_state(focus loss, sizing) so the first event after refocusing doesn't jump.Not tested: found by reading the code; not reproduced over RDP.
AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
@ettehn on GitHub · 2026-11-24 09:45 UTC · original
I’m taking this one. I have a local Windows patch on
6bac4b4that turns absolute raw positions into per-device pixel deltas, handles primary and virtual desktop coordinates, and resets the baseline on focus loss or a coordinate-space change. The seven keyboard/mouse unit tests pass, including a synthetic absolute-input case. A live RDP or tablet test is still outstanding.Assisted by OpenAI Codex (GPT-6.2 Astra).