Skip to content

Fix WIP effect types Constant, Ramp, and Condition#5

Open
arran4 wants to merge 1 commit intoDMJC:masterfrom
arran4:fix-ffb-effects-15145853833366608939
Open

Fix WIP effect types Constant, Ramp, and Condition#5
arran4 wants to merge 1 commit intoDMJC:masterfrom
arran4:fix-ffb-effects-15145853833366608939

Conversation

@arran4
Copy link
Copy Markdown
Contributor

@arran4 arran4 commented Mar 16, 2026

Fixes an issue where most Force Feedback effects (Constant, Ramp, Condition) did not work because their parameters were not being correctly passed down to the SDL structures.

Fixes DMJC#3

PR created automatically by Jules for task 15145853833366608939 started by @arran4

  • Added level, start_strength, and end_strength to FFDEffect.
  • Populated the missing fields in ffb.cpp for Constant and Ramp effects.
  • Fixed the Condition effect by unconditionally writing to axes indices.
  • Addressed switch statement fallthroughs in ffb.cpp.

* Added `level`, `start_strength`, and `end_strength` to `FFDEffect`.
* Populated the missing fields in `ffb.cpp` for Constant and Ramp effects.
* Fixed the Condition effect by unconditionally writing to axes indices.
* Addressed `switch` statement fallthroughs in `ffb.cpp`.
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.

Force Feedback Effects don't work for most effect types.

1 participant