> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputDevice::SetForceFeedbackMotorGain

> IGameInputDevice::SetForceFeedbackMotorGain

# IGameInputDevice::SetForceFeedbackMotorGain

Aplica un factor de atenuación global a todos los efectos cargados en un motor.

## Sintaxis

```cpp theme={null}
void SetForceFeedbackMotorGain(
    uint32_t motorIndex,
    float masterGain
);
```

### Parámetros

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

Índice del motor que se va a cambiar.

*masterGain*   \_In\_\
Tipo: float

Factor de atenuación global para todos los efectos cargados en el motor, entre 0.0 y 1.0.

### Valor devuelto

Ninguno.

## Comentarios

Este método aplica un factor de atenuación global a todos los efectos cargados en el motor. El puntero `masterGain` acepta valores entre 0.0 y 1.0. La configuración de intensidad de retroalimentación de fuerza de la aplicación lo utiliza. Para obtener más información, consulte [Información general de GameInput](/build/core-features/common/input/overviews/input-overview).

## Requisitos

**Encabezado:** GameInput.h

[GameInput](/reference/input/gameinput/gameinput_members)\
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)

## Historial de versiones

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


## Related topics

- [IGameInputDevice::SetHapticMotorState](/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [IGameInputForceFeedbackEffect::SetGain](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetGain](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [Force feedback en GameInput](/es/build/core-features/common/input/advanced/input-forcefeedback.md)
- [IsForceFeedbackMotorPoweredOn](/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_isforcefeedbackmotorpoweredon.md)
