setModeWeaponWithStartPosition(_:endPosition:resistiveStrength:)
Sets the mode to provide feedback when the user depresses the trigger between the start and the end positions.
Declaration
func setModeWeaponWithStartPosition(_ startPosition: Float, endPosition: Float, resistiveStrength: Float)Parameters
- startPosition:
The effect’s start position. A value between
0and1, where0is the minimum and1is the maximum trigger depression. - endPosition:
The effect’s end position. A value between
0and1, where0is the minimum and1is the maximum trigger depression. This value must be greater thanstartPosition. - resistiveStrength:
The strength of the effect. A value between
0and1, where0is the minimum or off value, and1is the maximum strength.
Discussion
When the user depresses the trigger beyond the value of the end position, it stops providing feedback, giving the user a sense of release, similar to pulling a weapon trigger.
See Also
Configuring the trigger
setModeFeedbackWithStartPosition(_:resistiveStrength:)GCDualSenseAdaptiveTrigger.PositionalResistiveStrengthssetModeFeedback(resistiveStrengths:)setModeVibrationWithStartPosition(_:amplitude:frequency:)setModeVibration(amplitudes:frequency:)GCDualSenseAdaptiveTrigger.PositionalAmplitudessetModeSlopeFeedback(startPosition:endPosition:startStrength:endStrength:)