> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputForceFeedbackEffect::SetParams

> IGameInputForceFeedbackEffect::SetParams

Sets new parameters on a force-feedback effect.

## Syntax

```cpp theme={null}
bool SetParams(
    const GameInputForceFeedbackParams* params
);
```

### Parameters

*params*   \_In\_\
Type: [GameInputForceFeedbackParams\*](https://docs.xbox.com/reference/input/gameinput/structs/gameinputforcefeedbackparams.md)

The new force-feedback parameters to be set.

### Return value

Type: bool

The results of setting the new parameters. If the function succeeds, it returns true.

## Remarks

When setting new parameters for a force feedback effect, the motor will attempt to continue the effect uninterrupted. You may only set new parameters on a force feedback effect if the new parameters and the old parameters share the same [GameInputForceFeedbackEffectKind](https://docs.xbox.com/reference/input/gameinput/enums/gameinputforcefeedbackeffectkind.md) enumeration. For more information, see [Advanced GameInput topics](https://docs.xbox.com/build/core-features/common/input/advanced/input-advanced-topics.md).

Note that the duration timer is **not** refreshed if the duration value does not change.  It will only be refreshed if a different duration value is provided, or the effect is stopped and restarted.

[Overview of GameInput](https://docs.xbox.com/build/core-features/common/input/overviews/input-overview.md)\
[GameInputForceFeedbackParams](https://docs.xbox.com/reference/input/gameinput/structs/gameinputforcefeedbackparams.md)\
[IGameInputForceFeedbackEffect](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)

## Version History

| Version | Changes |
| - | - |
| **v0** | Introduced. |


## Related topics

- [Force feedback on GameInput](https://docs.xbox.com/build/core-features/common/input/advanced/input-forcefeedback.md)
- [IGameInputForceFeedbackEffect (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)
- [IGameInputForceFeedbackEffect::SetState](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setstate.md)
- [IGameInputForceFeedbackEffect::SetGain](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [GameInputForceFeedbackConstantParams](https://docs.xbox.com/reference/input/gameinput/structs/gameinputforcefeedbackconstantparams.md)
