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

# IGameInputDevice::GetSupportedRumbleMotors

> 取得輸入裝置上可用的震動馬達。

取得輸入裝置上可用的震動馬達。

## 語法

```cpp theme={null}
GameInputRumbleMotors GetSupportedRumbleMotors();
```

### 參數

此方法沒有參數。

### 傳回值

類型：[GameInputRumbleMotors](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputrumblemotors.md)

`GameInputRumbleMotors` 旗標的組合，描述裝置上的震動馬達。如果裝置沒有震動馬達，則傳回 `GameInputRumbleNone`。

## 備註

使用 [IGameInputDevice::SetRumbleState](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setrumblestate.md) 控制震動馬達。應用程式不需要在呼叫 `SetRumbleState` 之前檢查裝置支援哪些馬達；如果裝置缺少某個馬達，GameInput 會嘗試使用其他馬達來模擬其效果。當您想要根據實際存在的馬達調整回饋設計時 (例如使用脈衝扳機馬達時)，請使用此方法。

支援的震動馬達集合在裝置物件的存留期間內不會變更。

在 GameInput v3 及更早版本中，此資訊可從 [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) 所傳回 [GameInputDeviceInfo](https://docs.xbox.com/zh-TW/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 結構的 `supportedRumbleMotors` 成員取得。

## 需求

**標頭：** GameInput.h

**程式庫：** gameinput.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[GameInput 概觀](https://docs.xbox.com/zh-TW/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[GameInputRumbleMotors](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputrumblemotors.md)\
[IGameInputDevice::SetRumbleState](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setrumblestate.md)

## 版本歷程記錄

| 版本 | 變更 |
| - | - |
| **v4** | 已推出。 |


## Related topics

- [GameInputRumbleMotors](https://docs.xbox.com/zh-TW/reference/input/gameinput/enums/gameinputrumblemotors.md)
- [IGameInputDevice::GetSupportedInput](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)
- [IGameInputDevice::GetSupportedLightingGroups](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedlightinggroups.md)
- [IGameInputDevice::GetSupportedLightingGroupSize](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedlightinggroupsize.md)
- [IGameInputDevice::GetDeviceFamily](https://docs.xbox.com/zh-TW/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicefamily.md)
