launcher: dualsense vibration/volume setting #973

Manually merged
github merged 13 commits from gh-pr/973/head into gh-pr/973/base 2026-11-26 09:38:50 +00:00
Owner

@⁠Pyxellator on GitHub · 2026-10-02 13:51 UTC · original
intensity-Setting → main · +224 −49 · 12 files · 13 commits · merged 2026-10-03 14:03 UTC

Summary

Adds global DualSense controls under Settings → General → Controller, next to Game folders:

  • Vibration intensity: 0–100%
  • Controller speaker volume: 0–100%
  • Lightbar color: moved from User profile into the new Controller section
    The two sliders apply to both USB and Bluetooth. They scale the existing in-game intensity steps, so the cycle hotkeys still work. Both default to 100%, preserving the current behavior. Controller settings are global, including for games with custom settings; they are not shown in per-game settings.

Testing

  • Built the launcher and emulator on Linux.
  • Passed controller_settings and pad_haptics tests.
  • Physical DualSense testing over USB and Bluetooth is still pending.

AI use

Implementation and tests were prepared with Codex at my direction.

**@⁠Pyxellator** on GitHub · 2026-10-02 13:51 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/973) `intensity-Setting` → `main` · +224 −49 · 12 files · 13 commits · merged 2026-10-03 14:03 UTC ### **Summary** Adds global DualSense controls under Settings → General → Controller, next to Game folders: - Vibration intensity: 0–100% - Controller speaker volume: 0–100% - Lightbar color: moved from User profile into the new Controller section The two sliders apply to both USB and Bluetooth. They scale the existing in-game intensity steps, so the cycle hotkeys still work. Both default to 100%, preserving the current behavior. Controller settings are global, including for games with custom settings; they are not shown in per-game settings. ### **Testing** - Built the launcher and emulator on Linux. - Passed controller_settings and pad_haptics tests. - Physical DualSense testing over USB and Bluetooth is still pending. ### **AI** use Implementation and tests were prepared with Codex at my direction.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:38:48 +00:00
github manually merged commit 63f752e2eb into gh-pr/973/base 2026-11-26 09:38:50 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-02 14:00 UTC · original · edited 2026-10-03 13:57 UTC

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ad4bfd3c-bb96-47e0-a7cd-691b43db8336
📥 Commits

Reviewing files that changed from the base of the PR and between 1706ba1206 and 63f752e2eb.

📒 Files selected for processing (7)
  • src/launcher/include/configuration.h
  • src/launcher/include/configurationEditDialog.h
  • src/launcher/include/configurationListWidget.h
  • src/launcher/src/configurationEditDialog.cpp
  • src/launcher/src/configurationListWidget.cpp
  • src/launcher/src/mainDialog.cpp
  • tests/ControllerSettingsTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The launcher now stores controller speaker volume and vibration intensity as global settings and provides sliders for both values. It passes the values to the emulator through command-line arguments, which accept values from 0 through 100. Controller output scaling applies the configured percentages to speaker volume and vibration intensity. Tests cover the resulting scales and mute behavior.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to 63f75

No actionable merge-blocking issue is established. Existing games use the current global controller levels; physical USB and Bluetooth validation remains pending.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 63f75

Controller preferences are validated and applied through existing local launch and device-output paths. No new privilege or remote-access path was identified in the reviewed flow. Remaining uncertainty concerns upgrade and rollback behavior, interrupted or concurrent settings writes, and physical controller validation.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The reviewed control path affects controller-routed output within the launched emulator and its active controller. The existing speaker fallback can also apply the gain to the main host audio output when no DualSense consumes the stream. The inspected change supplies scalar settings to these existing sinks rather than introducing a new privileged operation.

Trust Boundaries and Controls

  • observed — The new process-boundary values are formatted from numeric controller fields and validated by the emulator. Per-game configuration cannot override the global controller object, and the editor updates controller preferences only in global-settings mode.

Resilience and Maintainability Implications

  • observed — The global editor starts from a temporary copy and commits controller preferences only after acceptance; cancellation does not assign them to the global owner. Persistence still removes and rewrites the global group and configuration array, as before this PR. Source inspection does not establish crash atomicity or serialization between concurrent launcher instances.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 7.69% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 11 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the DualSense vibration and volume settings added by the pull request.
Description check ✅ Passed The description summarizes the global controller settings, their behavior, defaults, and testing status.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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 help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-02 14:00 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/973#issuecomment-5954092043) · edited 2026-10-03 13:57 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/973?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `ad4bfd3c-bb96-47e0-a7cd-691b43db8336` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 1706ba1206ebefa5d551ed303938adfef5405783 and 63f752e2eb34a676976e4211f1e3cd8b1d9fb3aa. </details> <details> <summary>📒 Files selected for processing (7)</summary> * `src/launcher/include/configuration.h` * `src/launcher/include/configurationEditDialog.h` * `src/launcher/include/configurationListWidget.h` * `src/launcher/src/configurationEditDialog.cpp` * `src/launcher/src/configurationListWidget.cpp` * `src/launcher/src/mainDialog.cpp` * `tests/ControllerSettingsTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The launcher now stores controller speaker volume and vibration intensity as global settings and provides sliders for both values. It passes the values to the emulator through command-line arguments, which accept values from 0 through 100. Controller output scaling applies the configured percentages to speaker volume and vibration intensity. Tests cover the resulting scales and mute behavior. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"63f752e2eb34a676976e4211f1e3cd8b1d9fb3aa" --> **Change:** Feature <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `63f75` <!-- final_review_risk_coverage:{"sourceCommitId":"63f752e2eb34a676976e4211f1e3cd8b1d9fb3aa","coveredCommitId":"63f752e2eb34a676976e4211f1e3cd8b1d9fb3aa","kind":"reviewed"} --> No actionable merge-blocking issue is established. Existing games use the current global controller levels; physical USB and Bluetooth validation remains pending. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Security Architecture Review **Security architecture risk:** _🔵 Low_ · up to `63f75` Controller preferences are validated and applied through existing local launch and device-output paths. No new privilege or remote-access path was identified in the reviewed flow. Remaining uncertainty concerns upgrade and rollback behavior, interrupted or concurrent settings writes, and physical controller validation. **Retained concerns** No architecture-level concerns identified. <details> <summary>Security review details</summary> **Security Blast Radius** - _inferred_ — The reviewed control path affects controller-routed output within the launched emulator and its active controller. The existing speaker fallback can also apply the gain to the main host audio output when no DualSense consumes the stream. The inspected change supplies scalar settings to these existing sinks rather than introducing a new privileged operation. **Trust Boundaries and Controls** - _observed_ — The new process-boundary values are formatted from numeric controller fields and validated by the emulator. Per-game configuration cannot override the global controller object, and the editor updates controller preferences only in global-settings mode. **Resilience and Maintainability Implications** - _observed_ — The global editor starts from a temporary copy and commits controller preferences only after acceptance; cancellation does not assign them to the global owner. Persistence still removes and rewrites the global group and configuration array, as before this PR. Source inspection does not establish crash atomicity or serialization between concurrent launcher instances. </details> <!-- architecture_review_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 7.69% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 11 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly identifies the DualSense vibration and volume settings added by the pull request. | | Description check | ✅ Passed | The description summarizes the global controller settings, their behavior, defaults, and testing status. | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts > Autopilot is currently an internal CodeRabbit preview. <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=973)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠Pyxellator on GitHub · 2026-10-02 20:26 UTC · original

I tried it an it works perfectly fine

**@⁠Pyxellator** on GitHub · 2026-10-02 20:26 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/973#issuecomment-5960907145) I tried it an it works perfectly fine
Author
Owner

@⁠Rool-IO on GitHub · 2026-10-03 14:27 UTC · original · edited 2026-10-03 14:29 UTC

I tried it an it works perfectly fine

Actually SpeakerFX are still way too low volume even set to 100%
Correct default (matching PS5's slider at mid value - its own default) was before the BT Haptics/SpeakerFX commit

**@⁠Rool-IO** on GitHub · 2026-10-03 14:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/973#issuecomment-5970089546) · edited 2026-10-03 14:29 UTC > I tried it an it works perfectly fine Actually SpeakerFX are still way too low volume even set to 100% Correct default (matching PS5's slider at mid value - its own default) was before the BT Haptics/SpeakerFX commit
Author
Owner

@⁠Pyxellator on GitHub · 2026-10-03 18:16 UTC · original

Ok, ím gonna fix that

**@⁠Pyxellator** on GitHub · 2026-10-03 18:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/973#issuecomment-5972080297) Ok, ím gonna fix that
This discussion has been locked. Commenting is limited to contributors.
No description provided.