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

# GameInput 力反馈

> GameInput 力反馈接口

PC 上的 GameInput 力反馈设备遵循 [USB 开发者论坛](https://www.usb.org/hid)网站上的 Physical Interface Devices 规范（“Device Class Definition for PID 1.0”）。这种一致性意味着已面向 DirectInput 的设备也能通过该 API 在 PC 上进行交互。在主机上，只有 Game Input Protocol (GIP) 设备可通过该 API 交互。

通过将通用 HID 按钮、轴和开关映射到标准化的设备接口，该 API 仍能为力反馈配件带来价值。此映射便于游戏默认预映射设备的输入。有关详细信息，请参阅[与不同 GameInput 设备类型交互](https://docs.xbox.com/zh-CN/build/core-features/common/input/hardware/input-hardware-interfaces.md)。

## 参考 API 文档

* [GameInput（API 目录）](https://docs.xbox.com/zh-CN/reference/input/gameinput/gameinput_members.md)

## 另请参阅

[GameInput 概述](https://docs.xbox.com/zh-CN/build/core-features/common/input/overviews/input-overview.md)

[GameInput 上的力反馈](https://docs.xbox.com/zh-CN/build/core-features/common/input/advanced/input-forcefeedback.md)

[IGameInputDevice::CreateForceFeedbackEffect](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_createforcefeedbackeffect.md)

[IGameInputForceFeedbackEffect](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)


## Related topics

- [GameInput 硬件：力反馈、触觉与传感器](https://docs.xbox.com/zh-CN/build/core-features/common/input/hardware/index.md)
- [GameInput 高级主题：力反馈与回调](https://docs.xbox.com/zh-CN/build/core-features/common/input/advanced/index.md)
- [GameInputFeedbackEffectState](https://docs.xbox.com/zh-CN/reference/input/gameinput/enums/gameinputfeedbackeffectstate.md)
- [IsForceFeedbackMotorPoweredOn](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_isforcefeedbackmotorpoweredon.md)
- [面向硬件开发人员的 GameInput](https://docs.xbox.com/zh-CN/build/core-features/common/input/hardware/input-hardware-topics.md)
