GameInput: DualSense USB output report and adaptive trigger effect layouts #709
No reviewers
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!709
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-709"
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?
@MrCheese5 on GitHub · 2026-11-24 03:57 UTC · original
MrCheese5:ds-a-report-layouts→main· +431 −3 · 5 files · 2 commits · openStacked on #552; only the top commit belongs here.
A pure builder for the DualSense's USB output report 0x02. It covers compatible rumble (or leaving the actuators to audio haptics), the two adaptive trigger effect blocks (0x05 off, 0x21 feedback, 0x25 weapon, 0x26 vibration, over the 10 zones of the trigger's travel), the light bar, the player and mute LEDs, the light bar setup and the motor power attenuation. The byte offsets follow the output report layout in Linux's
hid-playstationdriver. No code is taken from it.Nothing calls it yet: #552 only reads the controller. The next PRs in this stack use it for rumble (#715) and the adaptive triggers (#731).
What is in it
crates/xcl/src/hle/dualsense_report.rs:TriggerEffect,Output, with tests checking the trigger blocks and the whole USB report byte for bytecrates/xcl/src/hle/mod.rs: the moduleTested
cargo test -p xcl --lib dualsense_report: 2 passedcargo test --workspace -- --test-threads=1: 696 passed, 0 failed, 41 ignored; SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64)--test-threads=4, GPU tests on this machine hang or lose the device tonight onmaintoo (bdab194and91f9a5e;bdab194had passed with 4 threads earlier the same night, and the driver logs GPU errors). Single-threaded,main91f9a5epasses (cargo test -p xcl --lib -- --test-threads=1: 647 passed, 0 failed).Regression run
Both runs use a fresh data root of their own. The title is not driven by a controller during the run, so this shows that nothing else changes, not the new path.
Not tested
AI use
🤖 Generated with Claude Code
@futurepro62 on GitHub · 2026-11-24 04:46 UTC · original
Tested exact head
3b568ed(on its base91f9a5e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 696 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Not tested
scripts/smoke.ps1(no title on this machine), AMD, a release build.AI use
@MesshM on GitHub · 2026-11-24 04:47 UTC · original
Test run of
3b568ed3ea450813e015e7cf1697722d62de88b8on AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge), so the tree tested includes the stack under it (#552).Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 705 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 664 passed, 0 failed, 21 ignoredSKIPPED;usb_output_report_layoutandtrigger_effect_blockspass.Review: A pure builder with layout tests, no device I/O, so it is safe to land ahead of its users. I did not compare every trigger effect byte against a reference.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@JJAutoCompare on GitHub · 2026-11-25 06:18 UTC · original
Empirical test report (
3b568ed3)Hardware / environment
3b568ed3ea450813e015e7cf1697722d62de88b8. Windows 11 Enterprise Evaluation, build 10.0.26200.9974. AMD Ryzen 7 3800X 8-Core Processor.0ef1bc386,x86_64-pc-windows-msvc), Cargo 1.100.0 (3acc79c0c), DXC 1.9.2609.5 (01b62ad47). Unoptimized test profile with debug info and incremental compilation disabled.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. All commands ran outside the Arc test wrapper.Commands and results
cargo test --workspace --no-runexited 0 and built 15 test executables.cargo test -p xcl --lib hle::dualsense_report::tests::exited 0 with 2 passed, 0 failed, 0 ignored, 0 skipped.cargo test -p xcl --lib hle::playstation::tests::exited 0 with 2 passed, 0 failed, 0 ignored, 0 skipped.SKIPPEDlines.Observed behavior
Not tested
Physical DualSense hardware, the full GPU workspace suite, and game smoke runs were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr709-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 11:56 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.