You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
BLesnau
changed the title
Is the Section trigger effect setup properly?
Is the Section trigger effect set up properly?
Jun 9, 2021
Technically, it is setup properly. Because the trigger effect types are all wrapped in a union, meaning all members in the struct will share the same memory space, think of it as structs overlaying over each other. So startPosition of struct Continuous would have the same value as startPosition of struct Section, due to how it's laid out in the structs. But of course, it should still use the Section struct, for readability.
And yeah a force parameter for the Section type would be useful as well.
In processTrigger(), the code for the Continuous trigger effect looks like this:
DualSense-Windows/VS19_Solution/DualSenseWindows/src/DualSenseWindows/DS5_Output.cpp
Lines 43 to 50 in 0b869f4
And the code for the Section trigger effect looks like this:
DualSense-Windows/VS19_Solution/DualSenseWindows/src/DualSenseWindows/DS5_Output.cpp
Lines 53 to 60 in 0b869f4
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?
The text was updated successfully, but these errors were encountered: