> ## 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 (Deprecated)

> IGameInputDevice::SetHapticMotorState

> [!WARNING]
>
> **Deprecated.** This method was removed in GameInput v1 and is not available in the current API.

Sets the haptic motor state for the specified motor on the device.

## Syntax

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

### Parameters

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

The zero-based index of the haptic motor to set.

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

A pointer to a [GameInputHapticFeedbackParams](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md) structure describing the haptic effect to play.

### Return value

Type: HRESULT

Returns E\_NOTIMPL, as this method was never implemented in v0.

## Remarks

This method was removed in v1 along with the [GameInputHapticFeedbackParams](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md) struct. Haptic feedback in the current API is controlled through [IGameInputDevice::SetForceFeedbackMotorGain](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md) and [IGameInputForceFeedbackEffect](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md).

## Version History

| Version | Changes |
| - | - |
| **v1** | Removed. |
| **v0** | Introduced. |

## See also

[Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[GameInputHapticFeedbackParams](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)\
[IGameInputDevice](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)


## Related topics

- [IGameInputDevice::SetInputSynchronizationState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setinputsynchronizationstate.md)
- [IGameInputDevice::GetBatteryState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getbatterystate.md)
- [IGameInputDevice::SetRawDeviceFeature (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
- [GameInputHapticFeedbackParams (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)
- [Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
