controller: cycle DualSense speaker volume, vibration and trigger intensity in game #946
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!946
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/946/head"
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?
@Cosmo on GitHub · 2026-09-30 20:41 UTC · original
Cosmo:controller-hotkeys→main· +588 −46 · 12 files · 2 commits · merged 2026-10-02 11:11 UTCThe PS5 lets players change the controller's speaker volume, vibration intensity and trigger effect intensity (Settings > Accessories > Controllers). The emulator had no way to do that, so the DualSense always played at full strength.
Three new controls in the input mapping cycle these settings in game, like any other key:
Each starts at the PS5 default (full) and is not saved. The speaker steps are amplitudes chosen to sound evenly spaced; linear quarters were much too loud at the low end. Changing vibration or trigger intensity re-sends the game's last rumble and trigger effect right away, so the change is felt before the game sends a new one.
Known limitations:
Testing
pad_hapticstests.AI use
Research, implementation and tests were done with Claude Code at my direction.
I reviewed the code, and tested it as described above.
@coderabbitai[bot] on GitHub · 2026-09-30 20:45 UTC · original · edited 2026-09-30 20:49 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
📝 Walkthrough
Walkthrough
The change adds cycleable scales for speaker volume, vibration intensity, and trigger-effect intensity. Keyboard controls and the input-mapping dialog expose the settings. Controller output applies the selected scale to vibration and trigger effects. DualSense haptics audio applies a gain selected by audio port type. Tests cover speaker output at a reduced scale.
Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Feature
Merge Risk: 🔵 Low · up to
f3dd4Changing trigger intensity can briefly restore the previous trigger strength or restart expired vibration. These recoverable output glitches warrant localized fixes but do not establish broader gameplay or availability failures.
Security Architecture Review
Security architecture risk: 🔵 Low · up to
f3dd4The controls remain limited to local controller output, with no demonstrated increase in privileges or remote access. However, changing intensity can replay expired vibration, and concurrent updates can temporarily leave output inconsistent with the selected setting.
Retained concerns
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-30 20:45 UTC · original
On
src/libs/controller.cppline 709 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 13007
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 36208
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 3938
Acquire
m_mutexbefore converting trigger effects.SetTriggerEffectcan convert an effect at the old intensity, thenCycleSettingcan completeResend()at zero intensity. The game call can then send its already converted effect and restore the old trigger output until another update occurs. Move the lock before conversion so conversion, cache updates, and sending use the same lock.Suggested fix
@coderabbitai[bot] on GitHub · 2026-09-30 20:45 UTC · original
On
src/libs/controller.cppline 720 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Resend only the output whose setting changed.
When trigger intensity changes, this call also restarts the last vibration request.
SetVibrationstarts a new 65,535 ms rumble duration, including when the previous request has already expired. Changing trigger intensity can therefore activate unrelated vibration without a new game request.Pass the changed setting to
Resend()and call only its corresponding setter.@coderabbitai[bot] on GitHub · 2026-09-30 20:45 UTC · original · reviewed
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
81121d73-f1bb-4ce8-ae4a-d8f560265f9b📥 Commits
Reviewing files that changed from the base of the PR and between
b7a1fac898and f3dd403e43bbca9d8f230cc9bd18aa4d98f6396d.📒 Files selected for processing (8)
src/graphics/presentation/window/hostInput.cppsrc/launcher/src/inputMappingDialog.cppsrc/libs/audio.cppsrc/libs/controller.cppsrc/libs/controller.hsrc/libs/dualSenseHaptics.cppsrc/libs/dualSenseHaptics.htests/PadHapticsTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.