fix(input): restore RenHDrum controller behavior #2478

Merged
HumanBean merged 3 commits from HumanBean/Longshot:fix/renhdrum-controller-behavior into main 2026-11-24 20:19:52 +00:00
Owner

Summary

On main, an original Switch Pro Controller can miss short effects over Bluetooth or lose steady effects over USB. Try sustained rumble and short effects in Ocarina of Time with Vibration set to Auto. A wired DualSense also starts with crisp notes disabled, and its Bluetooth reports use a coarse sleep.

Use RenHDrum's Compatible Bluetooth profile for the original Switch Pro Controller, refresh active USB reports every 40 ms, and apply strength after the core shapes the rumble. Switch pads whose SDL driver refuses raw reports fall back to motors. Wired DualSense enables crisp notes and Bluetooth uses a high-resolution report timer. The shared close path releases controller effects, and the Switch 2 HID layer implements the vibration mount queries and honors the game's vibration permission. Xbox trigger effects use a 200 ms duration with a 100 ms refresh while active.

Start with host/pad_sdl.c and host/rumble_renhdrum.c. See #2418. RenHDrum integration report

Testing

Tested:

On Linux, the full game-free suite passed on both main and this PR before the vibration permission regression test was added, with 961 passes and 18 skips on each. The new test and full suite are pending. The close-path regression fails on main because the shared close routine skips vibration cleanup. It passes with the fix under GCC and Clang. The fake SDL controller checks passed under both compilers for hardware eligibility, USB refresh, scaled silence, report rejection and motor fallback. The crash-record, pad speaker, rumble mapping, Vibration menu, and RenHDrum export checks passed. All five changed C files passed Linux syntax compilation with the project's host flags.

Still to test:

  • On Windows and Linux with an original Switch Pro Controller, compare short and sustained effects over USB and Bluetooth. Check for sustained rumble, responsive stops, and motor fallback on an unsupported or virtual pad, by hand.
  • On Windows and Linux with a DualSense, play Ocarina notes over USB and Bluetooth, exercise the game and menu vibration settings, and close or restart with the triggers active. Verify that the triggers release and the controller speaker still plays, by hand.
  • On a Microsoft Xbox One or Series controller, check trigger refresh and stop. Check the Switch 2 Pro Controller and paired Joy-Cons for working fallback, by hand. Run a Windows host build and compare it against main on the same hardware by hand.

Measurements

Verdict: The game-free checks confirm the close callback and the 40 ms wired refresh. Hardware HID timing, frame time and memory are pending.

Check Before: main @ 6123c76adc After: this PR @ b100c0ac0e
Window close and control quit Shared close routine skipped vibration shutdown Fake close paths call vibration shutdown once per close
Wired Switch Pro at steady strength Core can suppress unchanged packets indefinitely Fake controller receives an active refresh at 40 ms and a silence packet when the scaled effect stops
Bluetooth Switch Pro engine profile Level 1 defaults to 60 ms spacing with no refresh Compatible profile targets 32 ms spacing and a 40 ms active refresh

Risks

SDL drivers vary in which raw reports they accept. Basic vibration uses motors if a player needs a workaround. If a HID writer stalls during close, its resources stay live until the writer exits or the process terminates.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. The author requested a game-free WIP PR.
  • mise run test passes (any failure that also fails on main is named). A rerun with the vibration permission regression test is pending.
  • Measured against main, or Measurements says why there is nothing to measure. Hardware measurements are pending.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Linux syntax checks passed. Windows and full host build are pending.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary On main, an original Switch Pro Controller can miss short effects over Bluetooth or lose steady effects over USB. Try sustained rumble and short effects in Ocarina of Time with Vibration set to Auto. A wired DualSense also starts with crisp notes disabled, and its Bluetooth reports use a coarse sleep. Use RenHDrum's Compatible Bluetooth profile for the original Switch Pro Controller, refresh active USB reports every 40 ms, and apply strength after the core shapes the rumble. Switch pads whose SDL driver refuses raw reports fall back to motors. Wired DualSense enables crisp notes and Bluetooth uses a high-resolution report timer. The shared close path releases controller effects, and the Switch 2 HID layer implements the vibration mount queries and honors the game's vibration permission. Xbox trigger effects use a 200 ms duration with a 100 ms refresh while active. Start with `host/pad_sdl.c` and `host/rumble_renhdrum.c`. See #2418. [RenHDrum integration report](https://github.com/trzz1214/RenHDrum/blob/main/docs/integration/longshot-3.2.0-notes.md) ## Testing **Tested:** On Linux, the full game-free suite passed on both main and this PR before the vibration permission regression test was added, with 961 passes and 18 skips on each. The new test and full suite are pending. The close-path regression fails on main because the shared close routine skips vibration cleanup. It passes with the fix under GCC and Clang. The fake SDL controller checks passed under both compilers for hardware eligibility, USB refresh, scaled silence, report rejection and motor fallback. The crash-record, pad speaker, rumble mapping, Vibration menu, and RenHDrum export checks passed. All five changed C files passed Linux syntax compilation with the project's host flags. **Still to test:** - On Windows and Linux with an original Switch Pro Controller, compare short and sustained effects over USB and Bluetooth. Check for sustained rumble, responsive stops, and motor fallback on an unsupported or virtual pad, by hand. - On Windows and Linux with a DualSense, play Ocarina notes over USB and Bluetooth, exercise the game and menu vibration settings, and close or restart with the triggers active. Verify that the triggers release and the controller speaker still plays, by hand. - On a Microsoft Xbox One or Series controller, check trigger refresh and stop. Check the Switch 2 Pro Controller and paired Joy-Cons for working fallback, by hand. Run a Windows host build and compare it against main on the same hardware by hand. ## Measurements **Verdict:** The game-free checks confirm the close callback and the 40 ms wired refresh. Hardware HID timing, frame time and memory are pending. | Check | Before: main @ 6123c76adc00 | After: this PR @ b100c0ac0ea4 | |---|---|---| | Window close and control quit | Shared close routine skipped vibration shutdown | Fake close paths call vibration shutdown once per close | | Wired Switch Pro at steady strength | Core can suppress unchanged packets indefinitely | Fake controller receives an active refresh at 40 ms and a silence packet when the scaled effect stops | | Bluetooth Switch Pro engine profile | Level 1 defaults to 60 ms spacing with no refresh | Compatible profile targets 32 ms spacing and a 40 ms active refresh | ## Risks SDL drivers vary in which raw reports they accept. Basic vibration uses motors if a player needs a workaround. If a HID writer stalls during close, its resources stay live until the writer exits or the process terminates. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. The author requested a game-free WIP PR. - [ ] `mise run test` passes (any failure that also fails on `main` is named). A rerun with the vibration permission regression test is pending. - [ ] Measured against `main`, or Measurements says why there is nothing to measure. Hardware measurements are pending. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. Linux syntax checks passed. Windows and full host build are pending. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
Assisted-by: Codex
fix(input): restore RenHDrum controller behavior
All checks were successful
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 8s
CI / Workflow lint (actionlint) (pull_request) Successful in 14s
CI / Website build and checks (pull_request) Successful in 3m26s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 15s
Third-party parts / As their notes say (pull_request) Successful in 16s
Website / Website builds (pull_request) Successful in 3m26s
PR description / Description follows the template (pull_request_target) Successful in 10s
b100c0ac0e
Assisted-by: Codex
Member

Possibly related, for context:

  • issue #2061 Idea: all rumble uptions — Reports Switch 2 controllers stopped vibrating with RenHDrum
  • issue #2112 Game: DualSense fine haptics are barely perceptible on Auto at 200% strength — Reports weak DualSense haptics on Auto; overlapping strength behavior
  • PR #1888 build(renhdrum): RenHDrum 0.5.0, its DualSense HD Haptics, and RenHDrum in Auto for every pad it plays — Merged RenHDrum integration this PR revises
Possibly related, for context: - issue #2061 Idea: all rumble uptions — Reports Switch 2 controllers stopped vibrating with RenHDrum - issue #2112 Game: DualSense fine haptics are barely perceptible on Auto at 200% strength — Reports weak DualSense haptics on Auto; overlapping strength behavior - PR #1888 build(renhdrum): RenHDrum 0.5.0, its DualSense HD Haptics, and RenHDrum in Auto for every pad it plays — Merged RenHDrum integration this PR revises
Author
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The shared close fix has a regression test, but the new vibration-permission behavior does not. The controller fixes also need the hardware runs identified in the pull request before their effect is known.

The change revises Switch Pro, DualSense and Xbox vibration, adds vibration cleanup on close, and implements the game's vibration permission and mount queries. It adds backend selection and shutdown complexity; the reported game-free checks cover part of the behavior, while hardware results are pending.

Blocking (1): must change before merging.

  1. L1 host/nn_hid.c:1902: The new vibration-permission fix has no game-free regression test, contrary to the repository's fix rule. (more on the line) Do: Add a game-free test that sends active values, disables permission, checks both sides and motor output are cleared, verifies sends are ignored while disabled, and verifies they resume after permission is restored.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 host/pad_sdl.c:473: The claimed Switch Pro fix and the changed fallback paths have not been exercised on controllers. (more on the line) Do: Compare main and this head in game on Windows and Linux with an original Switch Pro over USB and Bluetooth; check short effects, sustained effects and stops, and exercise rejection and Switch 2/Joy-Con fallback.
  • L3 host/rumble_renhdrum.c:441: The changed HID timing and controller cleanup have not been checked on the other affected hardware. (more on the line) Do: Run the stated DualSense USB and Bluetooth, Xbox trigger, and Steam Controller checks on the applicable Windows and Linux setups, including stopping and closing with effects active.

@fix can do L1.

More: does it help, other systems, switches, what was read

Does it help: Unproven for the reported controller problems. The author reports 961 passes and 18 skips on both revisions, plus fake-controller checks for the 40 ms refresh and close cleanup; no before-and-after controller or in-game results are reported.

Other systems: The changes also affect Joy-Cons, Switch 2 controllers, third-party Xbox-type pads, Steam Input and Steam Controller grips, DualSense speaker and triggers, Linux and Windows shutdown, and SDL drivers that reject raw reports. Their hardware behavior has not been reported.

Switches: HOS_RUMBLE_BACKEND=renhdrum no longer forces RenHDrum for a single Joy-Con; Auto remains the default. HOS_HD_RUMBLE=0 now also prevents the original Switch Pro from selecting RenHDrum. The defaults and changed override behavior have not been validated on hardware.

Reviewed: b100c0ac0e against 6123c76adc: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff and commit messages; reviewed the changed input, report scheduling and shutdown sections and their callers. Skimmed the remaining portions of the larger changed files and test fixtures. docs/review-checklist.md and the adjacent Tooling checkout were absent; no recorded runs or translations were included.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance.
  • The diff contains no third-party, generated shader, game-data or renderer API changes.
  • The added close-path test exercises the actual shared close function and would detect removal of its new shutdown call.
  • The Switch fake-controller test covers wired refresh, scaled silence and SDL report rejection.

Testing: Read-only review; no builds, tests or project scripts were run. The author reports Linux game-free checks and syntax compilation; Windows host build and controller runs remain pending.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The shared close fix has a regression test, but the new vibration-permission behavior does not. The controller fixes also need the hardware runs identified in the pull request before their effect is known. The change revises Switch Pro, DualSense and Xbox vibration, adds vibration cleanup on close, and implements the game's vibration permission and mount queries. It adds backend selection and shutdown complexity; the reported game-free checks cover part of the behavior, while hardware results are pending. **Blocking (1)**: must change before merging. 1. **L1** `host/nn_hid.c:1902`: The new vibration-permission fix has no game-free regression test, contrary to the repository's fix rule. (more on the line) **Do:** Add a game-free test that sends active values, disables permission, checks both sides and motor output are cleared, verifies sends are ignored while disabled, and verifies they resume after permission is restored. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/pad_sdl.c:473`: The claimed Switch Pro fix and the changed fallback paths have not been exercised on controllers. (more on the line) **Do:** Compare main and this head in game on Windows and Linux with an original Switch Pro over USB and Bluetooth; check short effects, sustained effects and stops, and exercise rejection and Switch 2/Joy-Con fallback. - **L3** `host/rumble_renhdrum.c:441`: The changed HID timing and controller cleanup have not been checked on the other affected hardware. (more on the line) **Do:** Run the stated DualSense USB and Bluetooth, Xbox trigger, and Steam Controller checks on the applicable Windows and Linux setups, including stopping and closing with effects active. `@fix` can do L1. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the reported controller problems. The author reports 961 passes and 18 skips on both revisions, plus fake-controller checks for the 40 ms refresh and close cleanup; no before-and-after controller or in-game results are reported. **Other systems:** The changes also affect Joy-Cons, Switch 2 controllers, third-party Xbox-type pads, Steam Input and Steam Controller grips, DualSense speaker and triggers, Linux and Windows shutdown, and SDL drivers that reject raw reports. Their hardware behavior has not been reported. **Switches:** HOS_RUMBLE_BACKEND=renhdrum no longer forces RenHDrum for a single Joy-Con; Auto remains the default. HOS_HD_RUMBLE=0 now also prevents the original Switch Pro from selecting RenHDrum. The defaults and changed override behavior have not been validated on hardware. **Reviewed:** b100c0ac0ea4 against 6123c76adc00: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the complete diff and commit messages; reviewed the changed input, report scheduling and shutdown sections and their callers. Skimmed the remaining portions of the larger changed files and test fixtures. docs/review-checklist.md and the adjacent Tooling checkout were absent; no recorded runs or translations were included.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance. - The diff contains no third-party, generated shader, game-data or renderer API changes. - The added close-path test exercises the actual shared close function and would detect removal of its new shutdown call. - The Switch fake-controller test covers wired refresh, scaled silence and SDL report rejection. **Testing:** Read-only review; no builds, tests or project scripts were run. The author reports Linux game-free checks and syntax compilation; Windows host build and controller runs remain pending. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -1890,4 +1899,4 @@
static void vibration_value_idle(uint64_t v) { /* VibrationValue {f32 amp_low, freq_low, amp_high, freq_high} */
float idle[4] = {0.0f, 160.0f, 0.0f, 320.0f};
memcpy(GP(v), idle, sizeof idle);
}
Member

L1 (blocking): The new vibration-permission fix has no game-free regression test, contrary to the repository's fix rule.

When: If PermitVibration is restored to the previous no-op, the changed close and fake SDL tests still pass even though disabling permission no longer stops vibration or suppresses subsequent sends.

Do: Add a game-free test that sends active values, disables permission, checks both sides and motor output are cleared, verifies sends are ignored while disabled, and verifies they resume after permission is restored.

**L1** (blocking): The new vibration-permission fix has no game-free regression test, contrary to the repository's fix rule. *When:* If PermitVibration is restored to the previous no-op, the changed close and fake SDL tests still pass even though disabling permission no longer stops vibration or suppresses subsequent sends. **Do:** Add a game-free test that sends active values, disables permission, checks both sides and motor output are cleared, verifies sends are ignored while disabled, and verifies they resume after permission is restored.
@ -452,2 +470,4 @@
}
/* Stock SDL does not refresh raw wired Switch reports. The core already schedules Bluetooth resends. */
static int switch_poll(int i, int64_t now, int strength) {
Member

L2 (should fix): The claimed Switch Pro fix and the changed fallback paths have not been exercised on controllers.

When: Fake SDL accepts or rejects prepared reports, but cannot show whether an original Pro Controller plays short and sustained effects or whether supported drivers and other Switch pads handle the fallback correctly.

Do: Compare main and this head in game on Windows and Linux with an original Switch Pro over USB and Bluetooth; check short effects, sustained effects and stops, and exercise rejection and Switch 2/Joy-Con fallback.

**L2** (should fix): The claimed Switch Pro fix and the changed fallback paths have not been exercised on controllers. *When:* Fake SDL accepts or rejects prepared reports, but cannot show whether an original Pro Controller plays short and sustained effects or whether supported drivers and other Switch pads handle the fallback correctly. **Do:** Compare main and this head in game on Windows and Linux with an original Switch Pro over USB and Bluetooth; check short effects, sustained effects and stops, and exercise rejection and Switch 2/Joy-Con fallback.
@ -439,1 +438,4 @@
static volatile LONG bt_run, bt_failed;
/* Relative, high-resolution deadlines are shared by the two HID audio threads. */
static HANDLE rh_report_timer(void) {
return CreateWaitableTimerExW(NULL, NULL, 0x2 /* HIGH_RESOLUTION */, 0x00100002 /* SYNCHRONIZE | TIMER_MODIFY_STATE */);
Member

L3 (should fix): The changed HID timing and controller cleanup have not been checked on the other affected hardware.

When: The new timer and close path run for Bluetooth DualSense and Steam grip reports, while the new refresh duration affects Xbox triggers; the fake Switch tests do not exercise those devices or the DualSense speaker.

Do: Run the stated DualSense USB and Bluetooth, Xbox trigger, and Steam Controller checks on the applicable Windows and Linux setups, including stopping and closing with effects active.

**L3** (should fix): The changed HID timing and controller cleanup have not been checked on the other affected hardware. *When:* The new timer and close path run for Bluetooth DualSense and Steam grip reports, while the new refresh duration affects Xbox triggers; the fake Switch tests do not exercise those devices or the DualSense speaker. **Do:** Run the stated DualSense USB and Bluetooth, Xbox trigger, and Steam Controller checks on the applicable Windows and Linux setups, including stopping and closing with effects active.
Author
Owner
@fix
BeanBot referenced this pull request from a commit 2026-11-24 20:17:51 +00:00
test(hid): cover vibration permission
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 9s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 15s
CI / Workflow lint (actionlint) (pull_request) Successful in 15s
Third-party parts / As their notes say (pull_request) Successful in 16s
PR description / Description follows the template (pull_request_target) Failing after 15s
Website / Website builds (pull_request) Successful in 9m29s
CI / Website build and checks (pull_request) Successful in 9m29s
a9d5119365
As the review on #2478 asked.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The controller fix has game-free evidence, but its reported hardware behavior remains unverified. Switch Pro, DualSense, Xbox, Switch 2 and Joy-Con runs are still needed. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is a9d5119365. It was already up to date with main. I edited its description to match the change.

Changed

  • Vibration permission regression test: Added a game-free test at tests/test_vibration_permission.py:53 covering both HD backends, motor clearing, suppressed sends, and resumed vibration after permission is restored. The test was not run, as requested.

Nothing was built or run: the checks run again on the new head.

The change aims to restore reliable rumble and controller effect cleanup, with motor fallback when raw reports are rejected. It adds controller-specific timing and cleanup logic; the new test covers vibration permission without changing the runtime fix.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 host/pad_sdl.c:473: The claimed Switch Pro fix and the changed fallback paths have not been exercised on controllers. When: Fake SDL accepts or rejects prepared reports, but cannot show whether an original Pro Controller plays short and sustained effects or whether supported drivers and other Switch pads handle the fallback correctly. Do: Compare main and this head in game on Windows and Linux with an original Switch Pro over USB and Bluetooth; check short effects, sustained effects and stops, and exercise rejection and Switch 2/Joy-Con fallback.
  • L3 host/rumble_renhdrum.c:441: The changed HID timing and controller cleanup have not been checked on the other affected hardware. When: The new timer and close path run for Bluetooth DualSense and Steam grip reports, while the new refresh duration affects Xbox triggers; the fake Switch tests do not exercise those devices or the DualSense speaker. Do: Run the stated DualSense USB and Bluetooth, Xbox trigger, and Steam Controller checks on the applicable Windows and Linux setups, including stopping and closing with effects active.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (2; not asked for, not blocking)
  • The new vibration permission regression test and full suite are reported as pending.
  • The Windows host build and hardware timing, frame-time and memory measurements are pending.
More: does it help, other systems, switches, what was read

Does it help: Unproven on hardware. The description reports fake-controller checks for the 40 ms wired refresh and cleanup, but no before-and-after controller runs.

Other systems: The change affects Switch Pro USB and Bluetooth, DualSense playback and cleanup, Xbox triggers, Switch 2 and Joy-Con fallback on Windows and Linux. Hardware checks and a Windows host build remain pending.

Switches: HOS_RUMBLE_BACKEND retains Auto as its default; its forced RenHDrum behavior no longer includes a lone Joy-Con. Hardware fallback still needs verification.

Reviewed: a9d5119365 against 6123c76adc: Read the new vibration permission test, the relevant vibration code and fix diff, repository rules, and pull request template. Skimmed the remaining pull request diff and related controller paths; did not read every changed file in full.; nothing run (a code review).

Checked and fine:

  • The new test checks both HD backends, motor clearing, suppression while disabled and resumed vibration after permission is restored.
  • The test-only fix leaves the runtime controller changes in place.

Testing: No tests or project code were run during this read-only review. CI has not yet run on this head.

Overlaps and merge order: Not established.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The controller fix has game-free evidence, but its reported hardware behavior remains unverified. Switch Pro, DualSense, Xbox, Switch 2 and Joy-Con runs are still needed. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is a9d511936583. It was already up to date with `main`. I edited its description to match the change. **Changed** - **Vibration permission regression test**: Added a game-free test at tests/test_vibration_permission.py:53 covering both HD backends, motor clearing, suppressed sends, and resumed vibration after permission is restored. The test was not run, as requested. Nothing was built or run: the checks run again on the new head. The change aims to restore reliable rumble and controller effect cleanup, with motor fallback when raw reports are rejected. It adds controller-specific timing and cleanup logic; the new test covers vibration permission without changing the runtime fix. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/pad_sdl.c:473`: The claimed Switch Pro fix and the changed fallback paths have not been exercised on controllers. *When:* Fake SDL accepts or rejects prepared reports, but cannot show whether an original Pro Controller plays short and sustained effects or whether supported drivers and other Switch pads handle the fallback correctly. **Do:** Compare main and this head in game on Windows and Linux with an original Switch Pro over USB and Bluetooth; check short effects, sustained effects and stops, and exercise rejection and Switch 2/Joy-Con fallback. - **L3** `host/rumble_renhdrum.c:441`: The changed HID timing and controller cleanup have not been checked on the other affected hardware. *When:* The new timer and close path run for Bluetooth DualSense and Steam grip reports, while the new refresh duration affects Xbox triggers; the fake Switch tests do not exercise those devices or the DualSense speaker. **Do:** Run the stated DualSense USB and Bluetooth, Xbox trigger, and Steam Controller checks on the applicable Windows and Linux setups, including stopping and closing with effects active. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The new vibration permission regression test and full suite are reported as pending. - The Windows host build and hardware timing, frame-time and memory measurements are pending. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on hardware. The description reports fake-controller checks for the 40 ms wired refresh and cleanup, but no before-and-after controller runs. **Other systems:** The change affects Switch Pro USB and Bluetooth, DualSense playback and cleanup, Xbox triggers, Switch 2 and Joy-Con fallback on Windows and Linux. Hardware checks and a Windows host build remain pending. **Switches:** HOS_RUMBLE_BACKEND retains Auto as its default; its forced RenHDrum behavior no longer includes a lone Joy-Con. Hardware fallback still needs verification. **Reviewed:** a9d511936583 against 6123c76adc00: Read the new vibration permission test, the relevant vibration code and fix diff, repository rules, and pull request template. Skimmed the remaining pull request diff and related controller paths; did not read every changed file in full.; nothing run (a code review). **Checked and fine:** - The new test checks both HD backends, motor clearing, suppression while disabled and resumed vibration after permission is restored. - The test-only fix leaves the runtime controller changes in place. **Testing:** No tests or project code were run during this read-only review. CI has not yet run on this head. **Overlaps and merge order:** Not established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean changed title from WIP: fix(input): restore RenHDrum controller behavior to fix(input): restore RenHDrum controller behavior 2026-11-24 20:19:46 +00:00
HumanBean deleted branch fix/renhdrum-controller-behavior 2026-11-24 20:19:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2478
No description provided.