Skip to content

Is the Section trigger effect set up properly? #26

@BLesnau

Description

@BLesnau

In processTrigger(), the code for the Continuous trigger effect looks like this:

case DS5W::TriggerEffectType::ContinuousResitance:
// Mode
buffer[0x00] = 0x01;
// Parameters
buffer[0x01] = ptrEffect->Continuous.startPosition;
buffer[0x02] = ptrEffect->Continuous.force;
break;

And the code for the Section trigger effect looks like this:

case DS5W::TriggerEffectType::SectionResitance:
// Mode
buffer[0x00] = 0x02;
// Parameters
buffer[0x01] = ptrEffect->Continuous.startPosition;
buffer[0x02] = ptrEffect->Continuous.force;
break;

The Section trigger effect sets the first part of the array to a different value, which probably makes it do the Section effect rather than the Continuous effect, but the rest of that code actually uses the values from the Continuous effect.

The value for the end position should be put somewhere, correct?

Also, shouldn't the struct for the Section effect contain a value for the force to be used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions