build(renhdrum): RenHDrum 0.5.0, its DualSense HD Haptics, and RenHDrum in Auto for every pad it plays #1888
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!1888
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:build/renhdrum-0.5"
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?
Summary
RenHDrum, the library behind the DualSense's fine haptics and the Xbox and Switch pads' RenHDrum backends, moves from
0.4.0 to 0.5.0 (upstream tag
v0.5.0, commite778da6e). This PR also uses 0.5's main new part: DualSense HDHaptics. A DualSense that RenHDrum plays now taps its built-in speaker (rain, gravel, metal, menu clicks) and kicks
back on L2/R2 while you hold them, from the game's own vibration, with heavy hits a little deeper on the voice coils.
A new Controls row, DualSense HD Haptics (on by default), turns that off: the pad then plays exactly as on 0.4.
And Vibration's Auto now uses RenHDrum for every pad it plays, not just a DualSense on a cable: a DualSense over
Bluetooth, Xbox One/Series pads (all four motors), Switch Pro Controllers and Joy-Con pairs, and the Steam Controller
(2026)'s grips, new here.
Three commits:
1.
build(renhdrum): the bump. On its own it changes nothing a player feels: 0.5's new motor style comes ononly together with the speaker, which nothing in this commit turns on.
third_party/renhdrum: 0.5.0'sCargo.toml,Cargo.lock,build.rs,src/,include/, licences and notice,unmodified. Its
vendor/opusis left out: it is libopus 1.5.2, the same release asthird_party/opus(it differsonly in CRLF line endings and three headers nothing it builds includes).
PROVENANCE.mdsays so.scripts/renhdrum.py: 0.5 compiles libopus in throughbuild.rsand thecccrate, so the build nowccand the two crates it needs from crates.io, each checked by the SHA-256Cargo.lockrecords, andgives cargo only those (a directory source; still
--locked --offline),vendor/opusfromthird_party/opus(withoutcelt/opus_custom_demo.c, a program of its own),--linker), with-ffile-prefix-map,build.rsruns on the build machine).host/rumble_renhdrum.c:RH_ABIis0x000500and any 0.5.x loads.scripts/linux/appimage.sh: the AppImage'slicenses/renhdrum/carries libopus'sCOPYINGtoo.2.
feat(vibration): HD Haptics (host/rumble_renhdrum.c,host/pad_sdl.c).SendGamepadEffect) opens the speaker, and the DSP fills channel 1 ofthe pad's four-channel sound card at RenHDrum's level (60 %). Vibration strength scales it with the voice coils.
0x36(voice coils, the speaker in Opus, the triggers) replaces0x32.pulled, its side's last vibration and whether another button is held (
rh_ds_triggers). On the cable each change issent as an effects block; over Bluetooth it goes into the state every
0x36carries.dualsense_hd_haptics(intests/test_menu_ini_keys.py's FROZEN),HOS_OPT_DS_HD_HAPTICS= 93, ingpu/vk/menu/controller.cpp. Docs:docs/user/graphics-and-controls.md,docs/dev/reference/input.md.3.
feat(vibration): RenHDrum in Auto for every pad, and the Steam Controller (2026) (host/vibration.h,host/pad_sdl.c,host/rumble_renhdrum.c).vibration_pick: with RenHDrum loaded, Auto picks it for a DualSense over Bluetooth (its HID device), an Xbox pad anda Switch pad, where only
HOS_RUMBLE_BACKEND=renhdrumdid before. Without RenHDrum, or without what it needs, each padplays as before (Switch: our HD rumble; others: motors).
=hdkeeps RenHDrum out,=motorsplays motors everywhere.0x28de,0x1302cable,0x1303Bluetooth,0x1304dongle;hos_sdl_pad_productis new). A thread sends report0x88every 3.875 ms (cable, 8 kHz) or 7.75 ms (4 kHz), waitingon a high-resolution timer as
nn_vi.cdoes, with RenHDrum's0x86mode reports and its drift skip, and writes mode"off" on every way out. 100 failed writes fall back to the motors. A real Valve pad that goes motion-only when Steam's
stand-in opens lets go of it, so its rumble doesn't play twice.
"Grips (RenHDrum)" line says experimental, and the Vibration help names every pad. The five old English texts leave
menu_i18n.hwith their 65 translations (the new ones show in English until translated).tests/test_vibration_pick.py,tests/test_vibration_menu.pyfollow (the latter also checks commit 2's newrh_tickcall).Left unused on purpose: Xbox Direct (an alternative to the four-motor mapper, not an upgrade) and RenHDrum's own settings
store (our menu has the settings).
Read first:
host/rumble_renhdrum.c(usb_hd_set,rh_ds_triggers,bt_main), thenscripts/renhdrum.py(
locked_crates,vendor_crates,copy_opus,cmd_build).Testing
Tested: CachyOS Linux:
scripts/renhdrum.py build --target linux(through the job queue) buildsrenhdrum.sowith libopus in it. Twobuilds gave the same bytes (sha256
e90e70b4…), no path of this PC is in it, andrenhdrum.py checkcalls it usable(it needs libc, libm, libgcc_s and ld-linux only).
dev.py packover the shared base builds and linkslongshotandlongshot_vk.sowith all three commits.Not run in the game yet: this is open WIP with
--forceat the request of the person I work for.Still to test:
renhdrum.dllbuild (build-windows.yml, on its Linux runner with llvm-mingw),expecting a usable DLL with libopus in it (by hand: read the PR's CI run).
vibration: RenHDrum 0.5.0 loadedin the log, soft speaker taps onrain, gravel or menu clicks, L2/R2 kicking back on a hit while held, and with the row off the voice coils alone and
both triggers loose (by hand).
report 0x36, HD Haptics; with the row off,0x32(by hand).triggers' too, and Test vibration saying Four motors (by hand).
HD rumble (RenHDrum)); a singleJoy-Con: our own HD rumble as on
main(by hand).(
Grips (RenHDrum)), stop within 100 ms of quiet, and nothing stays on after quitting; with Steam open, its stand-inplays through Steam and the grips don't play twice (by hand: needs that controller).
renhdrum.dll/.sobeside the game: every pad plays as onmain(by hand).@Beanstalkwith a DualSense).Measurements
Nothing to measure: no change to the frame; what changes is how the controllers vibrate, which Testing covers.
Risks
Auto now changes what plays an Xbox pad, a Switch pad and a Bluetooth DualSense for every player, from what only
testers had. These paths haven't been play-tested in this PR yet (see Still to test). Basic on the Vibration row
gives every pad its plain motors, and
HOS_RUMBLE_BACKEND=hdkeeps RenHDrum out.The Steam Controller (2026) grips are experimental in RenHDrum itself (made from one person's measurements); the
page says so.
A DualSense played by RenHDrum now makes soft sounds from its speaker and its triggers can kick back. A player who
doesn't want that turns DualSense HD Haptics off; with it off the pad plays as on 0.4 (speaker at 0, plain
0x32).Bluetooth:
0x36is about three times the bytes of0x32. Where the radio is busy, input could lag; repeated writefailures fall back to the motors, as before.
RenHDrum's
0x36builder also reads RenHDrum's own app settings, if a player has its Windows app orrenhdrum-settings.txt, for its own HD Haptics switch.The release's RenHDrum build downloads three small crates from crates.io (checked by SHA-256). If crates.io is down
that build fails; the game still runs without RenHDrum (every pad keeps its motors).
A player's build with an old 0.4
renhdrum.dllor.sobeside the game: RenHDrum doesn't load, the log says why,and the pads keep their motors. The release ships the matching 0.5 library.
Checklist
Ready for review
main; the title is a Conventional Commit.--forceas asked)mise run testpasses (any failure that also fails onmainis named). (left to CI: no tests run on this PC)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible. (third_party/renhdrumis a deliberate refresh from upstream, unmodified, tree hash recorded)When it applies
tests/that reads changed source is updated, not weakened..soand a pack; Windows left to CI)Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Possibly related, for context:
aa35f50dc77c38c867437c38c867438d0e2b1737WIP: build(renhdrum): RenHDrum 0.5.0, and its DualSense HD Haptics in the gameto WIP: build(renhdrum): RenHDrum 0.5.0, its DualSense HD Haptics, and RenHDrum in Auto for every pad it playsWIP: build(renhdrum): RenHDrum 0.5.0, its DualSense HD Haptics, and RenHDrum in Auto for every pad it playsto build(renhdrum): RenHDrum 0.5.0, its DualSense HD Haptics, and RenHDrum in Auto for every pad it plays