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

# GameInputHapticFeedbackParams（已弃用）

> GameInputHapticFeedbackParams

# GameInputHapticFeedbackParams

> [!WARNING]
>
> **已弃用。** 此结构已在 GameInput v1 中移除，当前 API 中不再提供。

描述要在设备马达上播放的触觉反馈效果的参数。

## 语法

```cpp theme={null}
typedef struct GameInputHapticFeedbackParams {
    uint32_t waveformIndex;
    uint64_t duration;
    float intensity;
    uint32_t playCount;
    uint64_t repeatDelay;
} GameInputHapticFeedbackParams;
```

## 成员

**waveformIndex**\
类型：uint32\_t

马达波形数组（来自 `GameInputHapticFeedbackMotorInfo.waveformInfo`）中的索引，用于标识要播放的波形。

**duration**\
类型：uint64\_t

效果持续时间（以微秒为单位）。设置为 0 以使用波形的默认持续时间。

**intensity**\
类型：float

效果强度，取值范围为 \[0.0, 1.0]。

**playCount**\
类型：uint32\_t

重复波形的次数。设置为 0 表示无限重复。

**repeatDelay**\
类型：uint64\_t

两次重复之间的延迟（以微秒为单位）。

## 版本历史

| 版本 | 变更 |
| - | - |
| **v1** | 已移除。 |
| **v0** | 已引入。 |

## 另请参阅

[已弃用的 GameInput API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
[IGameInputDevice::SetHapticMotorState](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
[GameInputHapticFeedbackMotorInfo](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackmotorinfo.md)


## Related topics

- [GameInputHapticFeedbackMotorInfo（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackmotorinfo.md)
- [GameInputHapticWaveformInfo（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/structs/gameinputhapticwaveforminfo.md)
- [IGameInputDevice::SetHapticMotorState（已弃用）](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [已弃用的 GameInput API 成员](https://docs.xbox.com/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [Xbox 无障碍指南 110](https://docs.xbox.com/zh-CN/build/game-principles/accessibility/xag-deep-dives/xag-110-haptic-feedback.md)
