> ## 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::SetHapticMotorState (非推奨)

> IGameInputDevice::SetHapticMotorState

# IGameInputDevice::SetHapticMotorState

> [!WARNING]
>
> **非推奨。** このメソッドは GameInput v1 で削除され、現在の API では利用できません。

デバイス上の指定されたモーターのハプティック モーター状態を設定します。

## 構文

```cpp theme={null}
HRESULT SetHapticMotorState(
    uint32_t motorIndex,
    const GameInputHapticFeedbackParams* params
);
```

### パラメーター

*motorIndex*   \_In\_\
型: uint32\_t

設定するハプティック モーターの 0 から始まるインデックスです。

*params*   \_In\_\
型: const [GameInputHapticFeedbackParams](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)\*

再生するハプティック効果を記述する [GameInputHapticFeedbackParams](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md) 構造体へのポインターです。

### 戻り値

型: HRESULT

このメソッドは v0 で実装されなかったため、E\_NOTIMPL を返します。

## 解説

このメソッドは [GameInputHapticFeedbackParams](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md) 構造体とともに v1 で削除されました。現在の API におけるハプティック フィードバックは、[IGameInputDevice::SetForceFeedbackMotorGain](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md) と [IGameInputForceFeedbackEffect](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md) を通じて制御されます。

## バージョン履歴

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

## 関連項目

[非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[GameInputHapticFeedbackParams](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)\
[IGameInputDevice](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)


## Related topics

- [IGameInputDevice::SetInputSynchronizationState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setinputsynchronizationstate.md)
- [GameInputHapticFeedbackMotorInfo (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackmotorinfo.md)
- [IGameInputDevice::SendInputSynchronizationHint (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sendinputsynchronizationhint.md)
- [IGameInputDevice::GetBatteryState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getbatterystate.md)
- [IGameInputDevice::SetRawDeviceFeature (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
