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

# IGameInputForceFeedbackEffect::SetParams

> 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\*](/reference/input/gameinput/structs/gameinputforcefeedbackparams)

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](/reference/input/gameinput/enums/gameinputforcefeedbackeffectkind) enumeration. For more information, see [Advanced GameInput topics](/build/core-features/common/input/advanced/input-advanced-topics).

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](/build/core-features/common/input/overviews/input-overview)\
[GameInputForceFeedbackParams](/reference/input/gameinput/structs/gameinputforcefeedbackparams)\
[IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect)

## Version History

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


## Related topics

- [Force feedback on GameInput](/build/core-features/common/input/advanced/input-forcefeedback.md)
- [IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)
- [IGameInputForceFeedbackEffect::GetParams](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getparams.md)
- [IGameInputForceFeedbackEffect::SetState](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setstate.md)
- [IGameInputForceFeedbackEffect::SetGain](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
