Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate conditional effect direction instead of hardcoding it to 0
Provious code wrongly assumed that direction is not an important part of conditional effect. Moreover, if there's need to hardcode polar direction, the default should be 0x4000 (north). For one axis affects, a direction of 0 means complete lack of force, if a FFB-enabled device takes direction into force calculation. A sine function graph can be used to represent the resulting forces where X is the input direction and Y is the force multiplier (360 degrees equals to 1). This fixes conditional effect playback on Moza Racing devices, which do not ignore direction field.
- Loading branch information