Skip to content

Customizable DualSense light bar behavior while a DSX link is active - #330

Open
martin-kalenda wants to merge 8 commits into
RiddleTime:devfrom
martin-kalenda:feature/DualSense-light-bar-controls
Open

martin-kalenda wants to merge 8 commits into
RiddleTime:devfrom
martin-kalenda:feature/DualSense-light-bar-controls

Conversation

@martin-kalenda

Copy link
Copy Markdown

Pull Request Template

Description

Adds a new Light Bar section to the DSX overlay for both the ACC and Common HUDs. Also adds RGB input boxes for ColorValueControls.

Light Bar:

  • Override Color + Color:
    • sets the light bar to a chosen color while connected to DSX
    • when off, the light bar is left to the user's DSX settings
  • Blink On Connect + Blink Color / Count / Interval:
    • blinks the light bar when connecting
    • if Override Color is off, the light bar then returns to the user's DSX settings
  • Color override is on by default to mimic current behavior. Blinking is set to off.
  • The previously hardcoded color (255, 69, 0) is the default for both.

Behavior difference between the HUDs:
In Common the blink plays on every game connect, because the client is closed and reset when the game exits and reconnects when it returns. In ACC the client stays open for as long as the overlay runs, so the blink plays only once per overlay start (app start, or toggling the overlay).

This also results in a different behavior during a game exit mid-blink - in Common the controller is reset right after the blink (as on any game exit), but in ACC it's handed back only when the overlay stops.

I left ACC this way because matching Common means changing ACC's connection lifecycle (a game-running check in DsxJob plus a new stop/reset path), which is outside this feature's scope. Let me know if you'd like ACC aligned with Common, and I can do it here or in a follow-up PR.

ColorValueControl:

  • Added red, green & blue text boxes next to the color picker.
    • digits only
    • max 3 characters, 0-255
    • values apply on Enter or lost focus
    • invalid values are reset to the last valid color
    • pasted text is trimmed and validated
  • Values picked in the color picker are shown in these inputs and the config is saved on mouse release and key release.
  • This change affects all HUDs using ColorValueControl.
  • Opacity intentionally left unhandled, as for example Twitch Chat has a separate slider for it.

Related Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Other (please specify):

Checklist

  • My code follows the project's coding style.
  • I have tested my changes thoroughly.
  • I have updated any necessary documentation.
  • My changes introduce no new warnings.

Additional Notes

  • Trigger haptics are blocked during the blink (0.9 s with default values, 5 s at most). The blink is opt-in and plays only on connect, so I don't think this is worth fixing.
  • The ACC and Common DSX overlays are separate copies of the same code, so the light bar logic is implemented in both and kept parallel as much as possible.
  • ACC now hands the controller back to the user's DSX settings when the overlay stops (Common already did this).
  • Stopping the overlay interrupts a running blink immediately instead of waiting for it to finish.
  • DSX has no instruction to reset only the light bar, so handing it back uses the controller-wide ResetToUserSettings, which also clears trigger effects. It's sent after the connect blink when Override Color is off (before any trigger effects are sent) and when the overlay stops, where releasing the triggers is intended.

RGB inputs Light Bar group

@RiddleTime

RiddleTime commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Looks like a good addition!

Some thoughts

  • Have the numeral rgb inputs on the left side of the ColorValueControl, this so all it matches the look and feel of other ValueControls.
  • Try showing the RGB values as labels in similar styling like the IntegerValueControl, so only enable the input whilst hovering it, feel free to slightly increase the height of the ColorValueControl to accomodate this.
  • Place the new Config Class(LightBarConfig) (in both DsxConfiguration) at the bottom as the order of declaration determines the order shown in the HUD tab.

The ACC and Common DSX overlays are separate copies of the same code, so the light bar logic is implemented in both and kept parallel as much as possible.

Having the Overlays Double is on purpose, as ACC uses a different more coupled data provider as well as a different mechanism for the adaptive triggers. Eventually some day.. if the common data structure reaches parity with the original ACC data interface they can merge since Common HUDs were added later when multi-sim was added.

@RiddleTime
RiddleTime self-requested a review November 17, 2026 23:32

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants