feat(input): forward DS5 player/mic-LED from libvirtualhid to the client - #5537
feat(input): forward DS5 player/mic-LED from libvirtualhid to the client#5537joelfcscoelho wants to merge 1 commit into
Conversation
Route the new libvirtualhid player_led / mic_led output kinds to the client via two control-stream messages (0x5504 player LED, 0x5505 mic LED), mirroring the existing rgb_led passthrough with per-value dedup. Bumps the libvirtualhid submodule to the commit that surfaces those output kinds. Signed-off-by: Joel Coelho <joelfernandocscoelho@gmail.com>
51a869e to
169135d
Compare
|
Bundle ReportBundle size has no change ✅ |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5537 +/- ##
==========================================
- Coverage 32.50% 32.47% -0.03%
==========================================
Files 104 104
Lines 25003 25053 +50
Branches 11078 11096 +18
==========================================
+ Hits 8126 8136 +10
- Misses 13894 13939 +45
+ Partials 2983 2978 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
Screenshot ComparisonPR #5537 screenshots vs Matrix:
|









































































Description
Follow-up to LizardByte/libvirtualhid#97. Now that libvirtualhid reports
the DualSense player and mic LEDs, this forwards them on to the client so the physical
controller's LEDs follow what the game sets.
Adds two control messages,
0x5504for the player LED and0x5505for the mic LED,and wires the two new output kinds up to them.
common.h:set_player_led/set_mic_ledfeedback types and theirmake_*helpersstream.cpp: the two packet types and their encode paths, same as the existing RGBLED one (
0x5502)virtualhid_input.cpp: forward theplayer_led/mic_ledoutputs, reusing the sameper-value dedup as the RGB case
libvirtualhidsubmodule to pull in the aboveOne thing to note: this depends on the libvirtualhid PR, so CI won't pass until that's
merged (the submodule points at its branch). Leaving it a draft until then. Client-side
handling of the two messages is moonlight-common-c#137.
Type of Change
Checklist
AI Usage