Skip to content

fix(windows): isolate virtual mice from touchpad click suppression - #238

Open
ReenigneArcher wants to merge 2 commits into
masterfrom
codex/windows-vhf-mouse-container
Open

ReenigneArcher wants to merge 2 commits into
masterfrom
codex/windows-vhf-mouse-container

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Windows can group a libvirtualhid mouse with the laptop’s built-in touchpad and apply Accidental Activation Prevention to its input. A left click immediately after a keypress can then be dropped at Medium sensitivity.

The UMDF driver assigns each virtual mouse its own Plug and Play container GUID before calling VhfCreate. The driver and the Xbox 360 broker use the same version 4 GUID generator.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Added regression tests for distinct virtual mouse container GUIDs and the default VHF containers for keyboards and gamepads.
  • Built both UMDF drivers and the Windows broker with WDK/MSVC. Built keyboard_mouse_adapter with MSYS2/UCRT64.
  • Ran the Windows driver protocol, VHF input queue, and Windows backend tests under UCRT64. All 42 passed.
  • The full suite reported 168 passed, 8 skipped, and 3 Xbox consumer failures. All three failures reproduced on an unchanged checkout using the same installed driver.
  • clang-format --dry-run --Werror and git diff --check passed.
  • The post-keystroke click still needs an end-to-end check with a signed patched driver on an affected laptop at Medium sensitivity.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Prepared with OpenAI Codex (gpt-6.2-sol, xhigh thinking).

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.63%. Comparing base (45443d6) to head (a5c375f).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #238      +/-   ##
==========================================
+ Coverage   73.58%   73.63%   +0.05%     
==========================================
  Files          45       45              
  Lines        9892     9908      +16     
  Branches     3690     3693       +3     
==========================================
+ Hits         7279     7296      +17     
+ Misses       2212     1974     -238     
- Partials      401      638     +237     
Flag Coverage Δ
FreeBSD 53.72% <ø> (ø)
Linux-Clang 68.49% <ø> (ø)
Linux-GCC 80.74% <ø> (ø)
PowerShell 78.60% <ø> (ø)
Windows-MSVC 73.56% <100.00%> (+0.06%) ⬆️
Windows-MinGW-UCRT64 66.21% <93.75%> (+0.02%) ⬆️
macOS 51.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...latform/windows/shared/windows_device_identity.hpp 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45443d6...a5c375f. Read the comment docs.

This branch has not been deployed

No deployments
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.

Windows: Virtual HID mouse clicks suppressed after keyboard input due to touchpad sensitivity

1 participant