---
title: "setModeSlopeFeedback(startPosition:endPosition:startStrength:endStrength:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcdualsenseadaptivetrigger/setmodeslopefeedback(startposition:endposition:startstrength:endstrength:)"
---

# setModeSlopeFeedback(startPosition:endPosition:startStrength:endStrength:)

Sets the mode to provide feedback when the user tilts the trigger between the start and the end positions.

## Declaration

```swift
func setModeSlopeFeedback(startPosition: Float, endPosition: Float, startStrength: Float, endStrength: Float)
```

## Parameters

- `startPosition`: The effect’s start position, which is a value between 0 and 1 , where 0 is the minimum and 1 is the maximum trigger tilt.
- `endPosition`: The effect’s end position, which is a value between 0 and 1 , where 0 is the minimum and 1 is the maximum trigger tilt. This value must be greater than startPosition.
- `startStrength`: The effect’s start strength, which is a value between 0 and 1, where 0 is the minimum or off value, and 1 is the maximum strength.
- `endStrength`: The effect’s end strength, which is a value between 0 and 1, where 0 is the minimum or off value, and 1 is the maximum strength.

## See Also

### Configuring the trigger

- [setModeFeedbackWithStartPosition(_:resistiveStrength:)](gamecontroller/gcdualsenseadaptivetrigger/setmodefeedbackwithstartposition(_:resistivestrength:).md)
- [GCDualSenseAdaptiveTrigger.PositionalResistiveStrengths](gamecontroller/gcdualsenseadaptivetrigger/positionalresistivestrengths.md)
- [setModeFeedback(resistiveStrengths:)](gamecontroller/gcdualsenseadaptivetrigger/setmodefeedback(resistivestrengths:).md)
- [setModeWeaponWithStartPosition(_:endPosition:resistiveStrength:)](gamecontroller/gcdualsenseadaptivetrigger/setmodeweaponwithstartposition(_:endposition:resistivestrength:).md)
- [setModeVibrationWithStartPosition(_:amplitude:frequency:)](gamecontroller/gcdualsenseadaptivetrigger/setmodevibrationwithstartposition(_:amplitude:frequency:).md)
- [setModeVibration(amplitudes:frequency:)](gamecontroller/gcdualsenseadaptivetrigger/setmodevibration(amplitudes:frequency:).md)
- [GCDualSenseAdaptiveTrigger.PositionalAmplitudes](gamecontroller/gcdualsenseadaptivetrigger/positionalamplitudes.md)
