GameInput: DualSense trigger rumble on the adaptive triggers, rumble on the haptics #731

Open
github-bot wants to merge 5 commits from github-bot/gh-731 into main AGit
Owner

@⁠MrCheese5 on GitHub · 2026-11-24 04:14 UTC · original
MrCheese5:ds-d-triggers-haptics → main · +997 −5 · 9 files · 5 commits · open

Stacked on #552, #709, #710 and #715; only the top commit belongs here.

The trigger levels from SetRumbleState (the console's impulse triggers) now drive a wired DualSense's adaptive triggers. A trigger either vibrates with an amplitude and frequency that follow the level, or resists as strongly as the level, with an optional resting resistance. With haptics = "auto", when the controller's USB audio output has 4 channels, the low and high levels play on its haptic actuators through the player from #710 instead of compatible vibration, and the report then leaves the actuators to the audio.

"auto" is opt-in, and the default "rumble" keeps compatible vibration as in #715. In a 60 s smoke run of the retail title on this machine with the controller connected, "auto" cost about a third of the presents (24 instead of 35 every 2 s, steady). I don't understand that yet. shutdown() stops the haptics and lets the triggers go, so neither stays stiff after the title exits.

[dualsense] in xcl.toml:

  • triggers: "vibration" (default), "resistance" or "off"
  • trigger_strength: 0–1
  • trigger_resistance: 0–1, resistance between rumbles
  • haptics: "rumble" (default), "auto" or "off"
  • rumble_strength: 0–1
  • haptics_device: part of the audio output's name

What is in it

  • crates/xcl/src/config.rs: DualSenseConfig and a test of a partial [dualsense] table
  • crates/xcl/src/hle/playstation.rs: trigger effects from the levels, motors or haptics, haptics start at connect and stop at disconnect or exit, with tests of the mapping
  • crates/xcl/src/hle/gameinput.rs: all four rumble levels go to the DualSense
  • README.md: the settings

Tested

  • RTX 4090 (driver 621.14), i9-14900K, Windows 11 26200, Rust stable-x86_64-pc-windows-msvc, debug tests, release smoke runs
  • cargo test -p xcl --lib playstation config: all passed (the 4 playstation tests and the config tests)
  • cargo test --workspace -- --test-threads=1: 702 passed, 0 failed, 41 ignored; SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64)
  • Single-threaded on purpose: with --test-threads=4, GPU tests on this machine hang or lose the device tonight on main too (bdab194 and 91f9a5e; bdab194 had passed with 4 threads earlier the same night, and the driver logs GPU errors). Single-threaded, main 91f9a5e passes (cargo test -p xcl --lib -- --test-threads=1: 647 passed, 0 failed).
  • On a USB DualSense (054c:0ce6), through a test harness that was not committed: the haptics started on its audio output (4 channels, 48 kHz). The reports were taken in order: no effect, a right-trigger vibration (0x26) with the actuators left to the audio, then no effect again. The haptics stopped at shutdown().

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.

xcl-smoke v1
commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db
gpu: NVIDIA GeForce RTX 4090
title: Xbox
seconds: 60
exit: 0x0
frames shown: 811 (PresentX 811)
presents per 2 s (last 3): 37 34 36
device removals: 0
crashes: 0
peak commit: 15536 MB
xcl-smoke v1
commit: 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca
gpu: NVIDIA GeForce RTX 4090
title: Xbox
seconds: 60
exit: 0x0
frames shown: 813 (PresentX 813)
presents per 2 s (last 3): 35 36 36
device removals: 0
crashes: 0
peak commit: 15532 MB

Not tested

  • Anything felt by hand: how the trigger vibration and resistance feel, and how the haptics feel next to compatible rumble. Nobody held the controller.
  • Whether a retail title sends trigger rumble at all: the retail title's menus do not during the smoke run.
  • Why haptics = "auto" costs frames (see above). That's why it's off by default.
  • DualSense over Bluetooth, and an audio output in 2 channels (the fallback to compatible rumble).
  • AMD and other NVIDIA GPUs (the change has no GPU code).

AI use

  • Claude Code with Claude Opus 5.5: wrote the code, the tests and this description; the hardware checks above are runs on the machine named under Tested.

🤖 Generated with Claude Code

**@⁠MrCheese5** on GitHub · 2026-11-24 04:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/731) `MrCheese5:ds-d-triggers-haptics` → `main` · +997 −5 · 9 files · 5 commits · open Stacked on #552, #709, #710 and #715; only the top commit belongs here. The trigger levels from `SetRumbleState` (the console's impulse triggers) now drive a wired DualSense's adaptive triggers. A trigger either vibrates with an amplitude and frequency that follow the level, or resists as strongly as the level, with an optional resting resistance. With `haptics = "auto"`, when the controller's USB audio output has 4 channels, the low and high levels play on its haptic actuators through the player from #710 instead of compatible vibration, and the report then leaves the actuators to the audio. "auto" is opt-in, and the default "rumble" keeps compatible vibration as in #715. In a 60 s smoke run of the retail title on this machine with the controller connected, "auto" cost about a third of the presents (24 instead of 35 every 2 s, steady). I don't understand that yet. `shutdown()` stops the haptics and lets the triggers go, so neither stays stiff after the title exits. `[dualsense]` in `xcl.toml`: - `triggers`: "vibration" (default), "resistance" or "off" - `trigger_strength`: 0–1 - `trigger_resistance`: 0–1, resistance between rumbles - `haptics`: "rumble" (default), "auto" or "off" - `rumble_strength`: 0–1 - `haptics_device`: part of the audio output's name **What is in it** - `crates/xcl/src/config.rs`: `DualSenseConfig` and a test of a partial `[dualsense]` table - `crates/xcl/src/hle/playstation.rs`: trigger effects from the levels, motors or haptics, haptics start at connect and stop at disconnect or exit, with tests of the mapping - `crates/xcl/src/hle/gameinput.rs`: all four rumble levels go to the DualSense - `README.md`: the settings **Tested** - RTX 4090 (driver 621.14), i9-14900K, Windows 11 26200, Rust stable-x86_64-pc-windows-msvc, debug tests, release smoke runs - `cargo test -p xcl --lib playstation config`: all passed (the 4 playstation tests and the config tests) - `cargo test --workspace -- --test-threads=1`: 702 passed, 0 failed, 41 ignored; SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64) - Single-threaded on purpose: with `--test-threads=4`, GPU tests on this machine hang or lose the device tonight on `main` too (bdab194 and 91f9a5e; bdab194 had passed with 4 threads earlier the same night, and the driver logs GPU errors). Single-threaded, `main` 91f9a5e passes (`cargo test -p xcl --lib -- --test-threads=1`: 647 passed, 0 failed). - On a USB DualSense (054c:0ce6), through a test harness that was not committed: the haptics started on its audio output (4 channels, 48 kHz). The reports were taken in order: no effect, a right-trigger vibration (0x26) with the actuators left to the audio, then no effect again. The haptics stopped at `shutdown()`. **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. ``` xcl-smoke v1 commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db gpu: NVIDIA GeForce RTX 4090 title: Xbox seconds: 60 exit: 0x0 frames shown: 811 (PresentX 811) presents per 2 s (last 3): 37 34 36 device removals: 0 crashes: 0 peak commit: 15536 MB ``` ``` xcl-smoke v1 commit: 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca gpu: NVIDIA GeForce RTX 4090 title: Xbox seconds: 60 exit: 0x0 frames shown: 813 (PresentX 813) presents per 2 s (last 3): 35 36 36 device removals: 0 crashes: 0 peak commit: 15532 MB ``` **Not tested** - Anything felt by hand: how the trigger vibration and resistance feel, and how the haptics feel next to compatible rumble. Nobody held the controller. - Whether a retail title sends trigger rumble at all: the retail title's menus do not during the smoke run. - Why `haptics = "auto"` costs frames (see above). That's why it's off by default. - DualSense over Bluetooth, and an audio output in 2 channels (the fallback to compatible rumble). - AMD and other NVIDIA GPUs (the change has no GPU code). **AI use** - Claude Code with Claude Opus 5.5: wrote the code, the tests and this description; the hardware checks above are runs on the machine named under **Tested**. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Windows gives PlayStation controllers to XInput only through extra
software (Steam Input, DS4Windows), so a player with one had no gamepad.
They are now read as HID devices (input report 0x01) on a thread of
their own, and used when no XInput controller answers: buttons, sticks
and triggers; no rumble or light bar. DualShock 4 over USB or Bluetooth
(the same first bytes), DualSense over USB. XCL_PLAYSTATION_PAD=0 turns
it off.
A pure builder for the DualSense's USB output report 0x02: compatible
rumble (or the actuators left to audio haptics), the two adaptive trigger
effect blocks (0x05 off, 0x21 feedback, 0x25 weapon, 0x26 vibration over
10 zones of travel), light bar, player and mute LEDs, the light bar setup
and the motor power attenuation. Byte offsets follow Linux's
hid-playstation output report layout; both tests check the bytes.

Nothing calls it yet: the PlayStation controller reader (#552) only reads.
The following changes use it for rumble and the triggers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Over USB the DualSense is also a 4-channel audio output whose channels 3
and 4 drive its two voice-coil actuators. dualsense_haptics finds that
output by name with WASAPI and plays, on a thread of its own, a 100 Hz
tone for the title's big motor (mostly left) and a 230 Hz tone for the
small one (mostly right). The amplitudes glide over 10 ms so level
changes do not click, and the speaker channels stay silent. start()
refuses an output with fewer than 4 channels, so the caller can keep
compatible rumble.

Nothing starts it yet. The windows crate gets three features for the
property store (no new crates). The tests check the synthesiser: only
the actuator channels play, the cross-mix, the glide and the tone
frequency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a DualSense over USB is the gamepad (no XInput controller), the
title's low and high rumble levels from SetRumbleState now reach its two
motors as compatible vibration in output report 0x02, instead of going
to an XInput controller that is not there. A writer thread sends the
report only when it changes, on a write handle of its own, so the
title's thread never waits on HID.

Reads become overlapped and wait on a stop event too: at process exit
the NtTerminateProcess hook calls shutdown(), which cancels the pending
read and sends the motors to zero (a DualSense keeps rumbling at the last
level it got until it is switched off). Two seconds without a report
count as a disconnect, because a controller that drops out of Bluetooth
range can leave a read pending with no error.

Sending a report also sets the light bar and player LEDs to the report's
defaults (dim blue, the middle LED). Checked on a USB DualSense
(054c:0ce6): it was found and read, and both rumble reports were taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
SetRumbleState's trigger levels (the console's impulse triggers) now
drive a wired DualSense's adaptive triggers: a vibration whose amplitude
and frequency follow the level, or a resistance as strong as the level,
with an optional resting resistance. With `haptics = "auto"`, when the
controller's USB audio output has 4 channels, the low and high levels
play on its haptic actuators through the haptics player instead of
compatible vibration (the report then leaves the actuators to the audio).

"auto" is opt-in: in a 60 s run of a retail title with the controller
connected, it cost about a third of the presents (24 instead of 35 every
2 s), which is not understood yet. The default "rumble" keeps compatible
vibration.

`[dualsense]` in xcl.toml: triggers (vibration / resistance / off),
trigger_strength, trigger_resistance, haptics (rumble / auto / off),
rumble_strength, haptics_device. shutdown() stops the haptics and lets
the triggers go, so none stays stiff after the title exits.

Checked on a USB DualSense (054c:0ce6): the haptics player found its
output in 4 channels at 48 kHz, and the reports with a trigger vibration
and then with no effect were taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:30:49 +00:00
Author
Owner

@⁠RandomGithub12309 on GitHub · 2026-11-24 04:39 UTC · original

Test run and review of 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca merged cleanly onto main (f4ce27c):

Tested

  • Hardware: NVIDIA GeForce RTX 5050 Laptop GPU (driver 32.0.16.2114, wave32, SM 6.6), Intel Core Ultra 7 255HX (20 cores), Windows 11 Build 26300, rustc 1.100.0 stable-x86_64-pc-windows-msvc, debug build
  • Command: cargo build --workspace + cargo test --workspace -- --test-threads=4
  • Result: 711 passed, 0 failed, 41 ignored (config::tests::dualsense_section_is_read_with_defaults_for_the_rest, dualsense_haptics::tests::*, dualsense_report::tests::*, and all 5 playstation::tests::* pass)
  • SKIPPED: gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware (no wave64)

Review

  • Unplug / shutdown vs haptics::start race (crates/xcl/src/hle/playstation.rs, crates/xcl/src/hle/dualsense_haptics.rs): read_until_gone spawns "xcl dualsense haptics start" to run haptics::start(&device), while read_until_gone exit and playstation::shutdown() call haptics::stop() (STOP.store(true)). Because haptics::start unconditionally runs STOP.store(false, Ordering::Release) without checking SHUTDOWN or synchronizing against stop(), unplugging or shutting down before the worker reaches STOP.store(false) clears the stop signal and leaves the WASAPI thread running until process exit. Also, if rx.recv_timeout(3s) times out, start returns false without setting STOP = true.

Not tested

  • Physical DualSense hardware over USB (HID output reports, adaptive triggers, or 4-channel Quadraphonic WASAPI audio), AMD / wave64, retail title (xcl-smoke)

AI use

  • Antigravity with Gemini 4 Hydrogen — merged 2b03a8b onto f4ce27c, audited the diff, ran the workspace suite, and wrote this report.
**@⁠RandomGithub12309** on GitHub · 2026-11-24 04:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/731#issuecomment-7122223521) Test run and review of `2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca` merged cleanly onto `main` (`f4ce27c`): **Tested** - Hardware: NVIDIA GeForce RTX 5050 Laptop GPU (driver `32.0.16.2114`, wave32, SM 6.6), Intel Core Ultra 7 255HX (20 cores), Windows 11 Build 26300, `rustc 1.100.0` `stable-x86_64-pc-windows-msvc`, debug build - Command: `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` - Result: **711 passed, 0 failed, 41 ignored** (`config::tests::dualsense_section_is_read_with_defaults_for_the_rest`, `dualsense_haptics::tests::*`, `dualsense_report::tests::*`, and all 5 `playstation::tests::*` pass) - `SKIPPED`: `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware` (`no wave64`) **Review** - **Unplug / shutdown vs `haptics::start` race (`crates/xcl/src/hle/playstation.rs`, `crates/xcl/src/hle/dualsense_haptics.rs`)**: `read_until_gone` spawns `"xcl dualsense haptics start"` to run `haptics::start(&device)`, while `read_until_gone` exit and `playstation::shutdown()` call `haptics::stop()` (`STOP.store(true)`). Because `haptics::start` unconditionally runs `STOP.store(false, Ordering::Release)` without checking `SHUTDOWN` or synchronizing against `stop()`, unplugging or shutting down before the worker reaches `STOP.store(false)` clears the stop signal and leaves the WASAPI thread running until process exit. Also, if `rx.recv_timeout(3s)` times out, `start` returns `false` without setting `STOP = true`. **Not tested** - Physical DualSense hardware over USB (HID output reports, adaptive triggers, or 4-channel Quadraphonic WASAPI audio), AMD / wave64, retail title (`xcl-smoke`) **AI use** - Antigravity with Gemini 4 Hydrogen — merged `2b03a8b` onto `f4ce27c`, audited the diff, ran the workspace suite, and wrote this report.
Author
Owner

@⁠LocranKing on GitHub · 2026-11-24 04:47 UTC · original

Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32).

Tested

  • Commit: 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca (pr-731, clean tree)
  • Hardware / software: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, driver 32.0.16.2101), rustc 1.100.0 (x86_64-pc-windows-msvc, MSVC 14.44.35207), DXC 1.9.2602.17 (SDK 10.0.26100.0), --release
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4: 702 passed, 0 failed, 41 ignored, exit 0; 2 (no wave64) skipped (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware)

Regression run (scripts/smoke.ps1, 60 s, XCL_NETWORK=0, title folder name redacted)

main (64b3f35):

xcl-smoke v1
commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 544 (PresentX 545)
presents per 2 s (last 3): 22 22 21
device removals: 0
crashes: 0
peak commit: 15491 MB

PR #731 (2b03a8b):

xcl-smoke v1
commit: 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1586 (PresentX 1587)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14715 MB

Not tested: Physical DualSense controller hardware (adaptive triggers / USB audio haptics), debug build, XCL_SAMPLE_* tests on this branch, AMD / wave64 hardware.

AI use: Antigravity (Gemini 4 Hydrogen) ran the build, tests, and smoke runs and drafted this report from the command outputs.

**@⁠LocranKing** on GitHub · 2026-11-24 04:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/731#issuecomment-7122334614) Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32). **Tested** - Commit: `2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca` (`pr-731`, clean tree) - Hardware / software: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (`8024 MiB VRAM`, driver `32.0.16.2101`), `rustc 1.100.0` (`x86_64-pc-windows-msvc`, MSVC `14.44.35207`), DXC `1.9.2602.17` (SDK `10.0.26100.0`), `--release` - `cargo test --workspace --release --no-fail-fast -- --test-threads=4`: **702 passed, 0 failed, 41 ignored**, exit `0`; `2 (no wave64)` skipped (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`) **Regression run** (`scripts/smoke.ps1`, 60 s, `XCL_NETWORK=0`, title folder name redacted) main (`64b3f35`): ``` xcl-smoke v1 commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175 gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 544 (PresentX 545) presents per 2 s (last 3): 22 22 21 device removals: 0 crashes: 0 peak commit: 15491 MB ``` PR #731 (`2b03a8b`): ``` xcl-smoke v1 commit: 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1586 (PresentX 1587) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14715 MB ``` **Not tested:** Physical DualSense controller hardware (adaptive triggers / USB audio haptics), debug build, `XCL_SAMPLE_*` tests on this branch, AMD / wave64 hardware. **AI use:** Antigravity (`Gemini 4 Hydrogen`) ran the build, tests, and smoke runs and drafted this report from the command outputs.
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 05:00 UTC · original

Test run of 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge), so the tree tested includes the stack under it (#552, #709, #710, #715).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 711 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 670 passed, 0 failed, 21 ignored
  • 0 SKIPPED; trigger_rumble_becomes_trigger_effects and rumble_levels_go_to_the_motors_or_the_haptics pass (no DualSense attached).

Review: I reviewed the top commit only, as the description asks.

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 onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 05:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/731#issuecomment-7122542040) Test run of `2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge), so the tree tested includes the stack under it (#552, #709, #710, #715). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **711 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 670 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `trigger_rumble_becomes_trigger_effects` and `rumble_levels_go_to_the_motors_or_the_haptics` pass (no DualSense attached). **Review:** I reviewed the top commit only, as the description asks. **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 onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 06:18 UTC · original

Empirical test report (2b03a8bf)

Hardware / environment

  • PR #731 head 2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca, verified in a clean detached checkout.
  • Windows 25H2 x64, build 10.0.26200.9974, AMD Ryzen 7 3800X 8-Core Processor.
  • Rust and Cargo 1.100.0, host x86_64-pc-windows-msvc, DXC 1.9.2609.5 (01b62ad47). Unoptimized test profile with debug info and incremental compilation disabled.
  • Focused runs used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1. The compile check and focused runs ran outside the Arc test wrapper.

Commands and results

  • cargo test --workspace --no-run exited 0 and compiled the workspace test executables.
  • cargo test -p xcl --lib config::tests::dualsense_section_is_read_with_defaults_for_the_rest exited 0. 1 passed, 0 failed, 0 ignored, 0 skipped.
  • cargo test -p xcl --lib hle::dualsense_haptics::tests:: exited 0. 2 passed, 0 failed, 0 ignored, 0 skipped.
  • cargo test -p xcl --lib hle::dualsense_report::tests:: exited 0. 2 passed, 0 failed, 0 ignored, 0 skipped.
  • cargo test -p xcl --lib hle::playstation::tests:: exited 0. 5 passed, 0 failed, 0 ignored, 0 skipped.

Total across all four focused runs was 10 passed, 0 failed, 0 ignored, 0 skipped. The skip count is the number of case-sensitive lines starting with SKIPPED .

Observed behavior

  • Partial DualSense configuration preserved the default haptics mode. Synthesized rumble kept speaker channels silent, ramped actuator output, and met the high-tone zero-crossing assertion.
  • The USB report tests verified trigger effect encoding, output byte layout, suppression of duplicate reports, and suppression of compatible motor bytes when audio haptics are active.
  • Synthetic DualSense and DualShock 4 USB input reports produced matching gamepad states. HID path matching and rejection of short or unsupported reports passed.

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 pr731-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 06:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/731#issuecomment-7154654345) ### Empirical test report (2b03a8bf) **Hardware / environment** - PR #731 head `2b03a8bf98ed0a3673c45ac86ee9ef2b34595cca`, verified in a clean detached checkout. - Windows 25H2 x64, build 10.0.26200.9974, AMD Ryzen 7 3800X 8-Core Processor. - Rust and Cargo 1.100.0, host `x86_64-pc-windows-msvc`, DXC 1.9.2609.5 (01b62ad47). Unoptimized test profile with debug info and incremental compilation disabled. - Focused runs used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. The compile check and focused runs ran outside the Arc test wrapper. **Commands and results** - `cargo test --workspace --no-run` exited 0 and compiled the workspace test executables. - `cargo test -p xcl --lib config::tests::dualsense_section_is_read_with_defaults_for_the_rest` exited 0. 1 passed, 0 failed, 0 ignored, 0 skipped. - `cargo test -p xcl --lib hle::dualsense_haptics::tests::` exited 0. 2 passed, 0 failed, 0 ignored, 0 skipped. - `cargo test -p xcl --lib hle::dualsense_report::tests::` exited 0. 2 passed, 0 failed, 0 ignored, 0 skipped. - `cargo test -p xcl --lib hle::playstation::tests::` exited 0. 5 passed, 0 failed, 0 ignored, 0 skipped. Total across all four focused runs was **10 passed, 0 failed, 0 ignored, 0 skipped**. The skip count is the number of case-sensitive lines starting with `SKIPPED `. **Observed behavior** - Partial DualSense configuration preserved the default haptics mode. Synthesized rumble kept speaker channels silent, ramped actuator output, and met the high-tone zero-crossing assertion. - The USB report tests verified trigger effect encoding, output byte layout, suppression of duplicate reports, and suppression of compatible motor bytes when audio haptics are active. - Synthetic DualSense and DualShock 4 USB input reports produced matching gamepad states. HID path matching and rejection of short or unsupported reports passed. **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 pr731-focused.log and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 11:38 UTC · original

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

**@⁠DavidM1911** on GitHub · 2026-11-25 11:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/731#issuecomment-7161316904) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/xcl/src/hle/playstation.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/731/head:github-bot/gh-731'
git switch 'github-bot/gh-731'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-731'
git switch 'github-bot/gh-731'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-731'
git switch 'github-bot/gh-731'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-731'
git switch 'main'
git merge --squash 'github-bot/gh-731'
git switch 'main'
git merge --ff-only 'github-bot/gh-731'
git switch 'main'
git merge 'github-bot/gh-731'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.