pad: report trigger effects without force as off #2523
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!2523
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2523/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?
@Nawid3333 on GitHub · 2026-11-22 22:52 UTC · original
Nawid3333:fix/forceless-trigger-effect-state→main· +26 −16 · 2 files · 2 commits · merged 2026-11-23 14:18 UTCCronos: The New Dawn (PPSA24096) cannot aim or shoot (#2083). At the first weapon prompt ("Hold L2 to aim at the hinge and press R2 to shoot") neither trigger does anything, although both reach the game at full travel (
scePadReadStategives l2/r2 = 255 with the L2/R2 button bits).The game sets L2 to a feedback effect (position 0, strength 0) and R2 to a weapon effect (start 2, end 3, strength 0) every frame and polls
scePadGetTriggerEffectState.trigger_effect_to_dualsensealready sends both to the DualSense as the off effect (0x05), since they have no force, butTriggerEffectStatestill reported feedback standby (1) for L2 and the weapon states 3-5 for R2. duaLib, where #1132 took the state values from, also encodes feedback and weapon effects with strength 0 (and a vibration without amplitude or frequency) as Off, and a DualSense running Off reports no effect state.Change
TriggerEffectStatereports off whentrigger_effect_to_dualsenseencodes the command as the off effect, so the reported state follows the effect the controller runs. The off value 0x05 gets a name,DUALSENSE_TRIGGER_OFF.Tests
controller_settings_tests: newTestForcelessTriggerEffectsReportOff(the Cronos pair, plus a multiple-position feedback without strength and a vibration without frequency). The existing zero-strength feedback and zero-frequency vibration checks made sure these never report active; they now expect off (four expectations change from 1 or 6 to 0).controller_settings_testspasses (RX 9070 XT, Windows 11).Game
a0b083c85plus logging, L2 stays at state 1 and R2 moves through 3, 4 and 5, and the game neither aims nor shoots. With a local build that reports off for these effects (the same check as this PR, behind a test switch) the game aims with L2 and shoots with R2.Fixes #2083
If you'd like this done differently, tell me and I'll change it.
Written with Claude Code (AI): it found the cause with logging builds and game runs on my PC, wrote the change and the tests and ran them (Windows 11, RX 9070 XT). I played the test runs and reviewed the diff and this description.
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-11-22 22:57 UTC · original
No actionable comments were generated in the recent review.
Walkthrough
The controller now uses a named constant for the DualSense trigger-off effect. Trigger-state reporting treats encoded off effects and specified zero-force feedback and vibration effects as off. Tests update expected states and add coverage for zero-force trigger configurations.
Suggested reviewers:
jetsku,nmzikChange: Bug fix
Merge Risk:
Minimal · up to
439d0This change makes forceless trigger effects report as off, which matches DualSense behavior and addresses the reported Cronos aiming and shooting problem. No merge-blocking risk was identified.
Pre-merge checks:
4
#2083), the cause (TriggerEffectState reports active or standby states for forceless effects that are sent to the DualSense as o…Full details: Title check
Explanation
The title "pad: report trigger effects without force as off" matches the main change: TriggerEffectState now reports off for trigger effects that trigger_effect_to_dualsense encodes as the DualSense off effect, including zero-strength feedback/weapon and zero-frequency vibration. The title is specific, concise, and accurate to the changeset and the PR objectives.
Full details: Description check
Explanation
The description explains the problem (Cronos cannot aim or shoot, issue
#2083), the cause (TriggerEffectState reports active or standby states for forceless effects that are sent to the DualSense as off), the code change (named DUALSENSE_TRIGGER_OFF constant, off-state check, removal of strength and frequency conditions), the new and updated tests, and the game verification. It is directly related to the changeset.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
9882eba9-9202-46ad-9493-93a400346a30Reviewing files that changed from the base of the PR and between
a0b083c852and439d04353b.src/libs/controller.cpptests/ControllerSettingsTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.