Skip to content

feat(windows): add keyboard/mouse support and expose global UMDF control-device path - #34

Merged
ReenigneArcher merged 5 commits into
masterfrom
fix/missing-compat
Jul 1, 2026
Merged

feat(windows): add keyboard/mouse support and expose global UMDF control-device path#34
ReenigneArcher merged 5 commits into
masterfrom
fix/missing-compat

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Screenshot

Issues Fixed or Closed

Roadmap Issues

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
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

Implement keyboard and mouse input through Win32 SendInput API. The keyboard backend supports individual key events and Unicode text input. The mouse backend supports relative/absolute motion, button events (including XButtons), and both vertical and horizontal scrolling with high-resolution support. Gamepad input continues to use the UMDF driver for descriptor-driven virtual devices. Update documentation, capabilities reporting, and tests accordingly.
Windows control channel discovery now supports both `\\.\LibVirtualHid` and `\\.\Global\LibVirtualHid` by default, while still honoring `LIBVIRTUALHID_WINDOWS_CONTROL_DEVICE` as an explicit override. The UMDF driver now creates the global symbolic link first and also attempts the legacy non-global link for compatibility. Protocol constants and unit/fixture tests were updated to cover the new global path behavior.
@codecov

codecovBot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.35669% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.81%. Comparing base (0d704b0) to head (af76d08).
✅ All tests successful. No failed tests found.

Files with missing linesPatch %Lines
src/platform/windows/windows_backend.cpp92.35%11 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@## master #34 +/- ##
==========================================
+ Coverage 87.70% 87.81% +0.11% 
==========================================
Files 14 14 Lines 4091 4235 +144 Branches 1390 1437 +47 ==========================================
+ Hits 3588 3719 +131 - Misses 388 393 +5 - Partials 115 123 +8 
FlagCoverage Δ
Linux-Clang71.34% <ø> (ø)
Linux-GCC83.41% <ø> (ø)
Windows-MSVC87.83% <94.07%> (+0.23%)⬆️
Windows-MinGW-UCRT6479.68% <84.50%> (+0.08%)⬆️
macOS70.64% <ø> (ø)

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

Files with missing linesCoverage Δ
src/platform/windows/control_protocol.hpp100.00% <ø> (ø)
src/platform/windows/windows_backend.cpp79.17% <92.35%> (+5.56%)⬆️

... and 2 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 0d704b0...af76d08. Read the comment docs.

@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit f06302f into masterJul 1, 2026
25 checks passed
@ReenigneArcher
ReenigneArcher deleted the fix/missing-compat branch July 1, 2026 13:14
Sign up for freeto 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

@ReenigneArcher