> ## 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.

# IGameInputForceFeedbackEffect::GetGain

> IGameInputForceFeedbackEffect::GetGain

# IGameInputForceFeedbackEffect::GetGain

Recupera la ganancia establecida en un efecto de retroalimentación de fuerza.

## Sintaxis

```cpp theme={null}
float GetGain();
```

### Parámetros

Este método no tiene parámetros.

### Valor devuelto

Tipo: float

La ganancia establecida en un dispositivo de motor de retroalimentación de fuerza.

## Comentarios

El método `IGameInputForceFeedbackEffect::GetGain` recupera la ganancia de un motor de retroalimentación de fuerza. La ganancia puede tener un valor entre 0.0 y 1.0. Para obtener más información, consulte [Temas avanzados de GameInput](https://docs.xbox.com/es/build/core-features/common/input/advanced/input-advanced-topics.md).

## Requisitos

**Encabezado:** GameInput.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[Información general de GameInput](https://docs.xbox.com/es/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputForceFeedbackEffect::SetGain](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)\
[IGameInputDevice::SetForceFeedbackMotorGain](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md)\
[IGameInputForceFeedbackEffect](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)

## Historial de versiones

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


## Related topics

- [IGameInputForceFeedbackEffect::SetGain](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetState](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getstate.md)
- [IGameInputForceFeedbackEffect::GetDevice](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getdevice.md)
- [IGameInputForceFeedbackEffect::SetState](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setstate.md)
- [IGameInputForceFeedbackEffect::SetParams](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setparams.md)
