Skip to content

fix(input): preserve aux gamepad data and bump libvirtualhid - #5531

Merged
ReenigneArcher merged 1 commit into
masterfrom
chore/test
Aug 20, 2026
Merged

fix(input): preserve aux gamepad data and bump libvirtualhid#5531
ReenigneArcher merged 1 commit into
masterfrom
chore/test

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Aug 19, 2026

Copy link
Copy Markdown
Member

Description

Avoid overwriting motion, battery, and touchpad fields when submitting regular gamepad control updates. gamepad_update now starts from the translated control state and carries forward cached acceleration, gyroscope, battery, and touch contacts before calling set_state. Added a unit test to verify these auxiliary values persist across control updates, and bumped the libvirtualhid submodule to the required revision.

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

See our AI usage policy.

  • 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

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Last Updated 2026-08-20 20:44:20 UTC
Source Run CI Run #5050
Commit 377ed202b428d67ba69638a9055772bef10d849d

Screenshot Comparison

PR #5531 screenshots vs screenshots baseline.

Matrix: AppImage

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-AMD64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-ARM64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-arm64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

@ReenigneArcher ReenigneArcher changed the title Update libvirtualhid fix(input): preserve aux gamepad data on button updates Aug 20, 2026
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.45%. Comparing base (f0a46d7) to head (377ed20).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5531      +/-   ##
==========================================
+ Coverage   32.29%   32.45%   +0.15%     
==========================================
  Files         102      104       +2     
  Lines       24423    24999     +576     
  Branches    10824    11077     +253     
==========================================
+ Hits         7887     8113     +226     
+ Misses      15592    14661     -931     
- Partials      944     2225    +1281     
Flag Coverage Δ
Archlinux 0.00% <0.00%> (ø)
FreeBSD-amd64 18.31% <85.71%> (+0.02%) ⬆️
Homebrew-macos-14 28.11% <100.00%> (+0.03%) ⬆️
Homebrew-macos-15 28.82% <100.00%> (+0.03%) ⬆️
Homebrew-macos-26 28.93% <100.00%> (+0.04%) ⬆️
Homebrew-ubuntu-24.04 18.99% <100.00%> (+0.03%) ⬆️
Linux-AppImage 18.40% <100.00%> (+0.03%) ⬆️
Windows-AMD64 23.80% <100.00%> (+0.04%) ⬆️
Windows-ARM64 20.52% <85.71%> (?)
macOS-arm64 25.37% <85.71%> (+0.04%) ⬆️
macOS-x86_64 26.03% <85.71%> (+0.04%) ⬆️

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

Files with missing lines Coverage Δ
src/platform/virtualhid_input.cpp 97.62% <100.00%> (+0.02%) ⬆️

... and 58 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 f0a46d7...377ed20. Read the comment docs.

Avoid overwriting motion, battery, and touchpad fields when submitting regular gamepad control updates. `gamepad_update` now starts from the translated control state and carries forward cached acceleration, gyroscope, battery, and touch contacts before calling `set_state`. Added a unit test to verify these auxiliary values persist across control updates, and bumped the `libvirtualhid` submodule to the required revision.
@ReenigneArcher ReenigneArcher changed the title fix(input): preserve aux gamepad data on button updates fix(input): preserve aux gamepad data and bump libvirtualhid Aug 20, 2026
@ReenigneArcher
ReenigneArcher marked this pull request as ready for review August 20, 2026 19:51
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit d3c5e2c into master Aug 20, 2026
71 checks passed
@ReenigneArcher
ReenigneArcher deleted the chore/test branch August 20, 2026 21:00
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