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

# GameInputForceFeedbackConstantParams

> GameInputForceFeedbackConstantParams

# GameInputForceFeedbackConstantParams

定義力回饋效果的固定物理特性。

## 語法

```cpp theme={null}
struct GameInputForceFeedbackConstantParams
{
    GameInputForceFeedbackEnvelope  envelope;
    GameInputForceFeedbackMagnitude magnitude;
};
```

### 成員

*envelope*\

類型：[GameInputForceFeedbackEnvelope](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackenvelope.md)

力回饋效果上的修改封套。

*magnitude*\

類型：[GameInputForceFeedbackMagnitude](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackmagnitude.md)

力回饋效果所套用的力量大小。

## 備註

`GameInputForceFeedbackConstantParams` 是 [GameInputForceFeedbackParams](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackparams.md) 結構的成員。

`CreateForceFeedbackEffect` 方法會在馬達中為具有指定參數集的新力回饋效果配置硬體資源，並傳回 `IGameInputForceFeedbackEffect` 執行個體以追蹤這些資源。如果硬體資源不足以建立效果，或硬體不支援要求的效果，則會傳回 `HRESULT` 錯誤。力回饋效果由其參數定義，並儲存在 `GameInputForceFeedbackParams` 結構中。

## 需求

**標頭：** GameInput.h

[GameInput 進階主題](https://docs.xbox.com/zh-TW/build/core-features/common/input/advanced/input-advanced-topics.md)\
[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[GameInput](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v0** | 推出。 |


## Related topics

- [GameInputForceFeedbackMagnitude](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackmagnitude.md)
- [GameInputForceFeedbackEnvelope](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackenvelope.md)
- [GameInputForceFeedbackParams](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackparams.md)
- [GameInput API 成員](https://docs.xbox.com/zh-TW/reference/input/gameinput/gameinput_members.md)
- [GameInputForceFeedbackConditionParams](https://docs.xbox.com/zh-TW/reference/input/gameinput/structs/gameinputforcefeedbackconditionparams.md)
