> ## 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 (en desuso)

> IGameInputDevice::SetHapticMotorState

# IGameInputDevice::SetHapticMotorState

> [!WARNING]
>
> **En desuso.** Este método se quitó en GameInput v1 y no está disponible en la API actual.

Establece el estado del motor háptico para el motor especificado del dispositivo.

## Sintaxis

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

### Parámetros

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

El índice de base cero del motor háptico que se va a establecer.

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

Un puntero a una estructura [GameInputHapticFeedbackParams](https://docs.xbox.com/es/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md) que describe el efecto háptico que se va a reproducir.

### Valor devuelto

Tipo: HRESULT

Devuelve E\_NOTIMPL, ya que este método nunca se implementó en v0.

## Comentarios

Este método se quitó en v1 junto con la estructura [GameInputHapticFeedbackParams](https://docs.xbox.com/es/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md). En la API actual, la respuesta háptica se controla mediante [IGameInputDevice::SetForceFeedbackMotorGain](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md) e [IGameInputForceFeedbackEffect](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md).

## Historial de versiones

| Versión | Cambios |
| - | - |
| **v1** | Se quitó. |
| **v0** | Se introdujo. |

## Consulte también

[Miembros de la API de GameInput en desuso](https://docs.xbox.com/es/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[GameInputHapticFeedbackParams](https://docs.xbox.com/es/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)\
[IGameInputDevice](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)


## Related topics

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