> ## 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/ja-jp/reference/input/gameinput/enums/gameinputrumblemotors.md)

デバイス上の振動モーターを表す `GameInputRumbleMotors` フラグの組み合わせ。デバイスに振動モーターがない場合は `GameInputRumbleNone` を返します。

## 解説

振動モーターを制御するには、[IGameInputDevice::SetRumbleState](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setrumblestate.md) を使用します。アプリケーションは、`SetRumbleState` を呼び出す前に、デバイスがどのモーターをサポートしているかを確認する必要はありません。デバイスにモーターがない場合、GameInput は他のモーターを使用してその効果をエミュレートしようとします。インパルス トリガー モーターを使用する場合など、実際に存在するモーターに合わせてフィードバックの設計を調整する場合に、このメソッドを使用します。

サポートされる振動モーターのセットは、デバイス オブジェクトの有効期間中は変化しません。

GameInput v3 以前では、この情報は [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md) から返される [GameInputDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 構造体の `supportedRumbleMotors` メンバーから取得できました。

## 要件

**ヘッダー:** GameInput.h

**ライブラリ:** gameinput.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体、XBOX Series 本体

## 関連項目

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

## バージョン履歴

| バージョン | 変更内容 |
| - | - |
| **v4** | 導入されました。 |


## Related topics

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