> ## 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

# IGameInputForceFeedbackEffect::SetParams

フォース フィードバック エフェクトに新しいパラメーターを設定します。

## 構文

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

### パラメーター

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

設定する新しいフォース フィードバック パラメーターです。

### 戻り値

型: bool

新しいパラメーターの設定結果です。関数が成功した場合は true を返します。

## 解説

フォース フィードバック エフェクトに新しいパラメーターを設定する際、モーターはエフェクトを中断せずに継続しようとします。フォース フィードバック エフェクトに新しいパラメーターを設定できるのは、新しいパラメーターと古いパラメーターが同じ [GameInputForceFeedbackEffectKind](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputforcefeedbackeffectkind.md) 列挙値を共有している場合に限られます。詳細については、「[GameInput の高度なトピック](https://docs.xbox.com/ja-jp/build/core-features/common/input/advanced/input-advanced-topics.md)」を参照してください。

なお、duration 値が変わらない場合、期間タイマーは **リフレッシュされません**。リフレッシュされるのは、異なる duration 値が指定された場合、またはエフェクトが停止して再開された場合のみです。

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

## バージョン履歴

| バージョン | 変更点 |
| - | - |
| **v0** | 導入。 |


## Related topics

- [GameInput のフォースフィードバック](https://docs.xbox.com/ja-jp/build/core-features/common/input/advanced/input-forcefeedback.md)
- [IGameInputForceFeedbackEffect::SetState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setstate.md)
- [IGameInputForceFeedbackEffect::SetGain](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetGain](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputForceFeedbackEffect::GetDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getdevice.md)
