> ## 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 o ganho definido em um efeito de force feedback.

## Sintaxe

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

### Parâmetros

Este método não tem parâmetros.

### Valor retornado

Tipo: float

O ganho definido em um dispositivo de motor de force feedback.

## Comentários

O método `IGameInputForceFeedbackEffect::GetGain` recupera o ganho em um motor de force feedback. O ganho pode ter um valor entre 0,0 e 1,0. Para obter mais informações, confira [Tópicos avançados do GameInput](https://docs.xbox.com/pt-BR/build/core-features/common/input/advanced/input-advanced-topics.md).

## Requisitos

**Cabeçalho:** GameInput.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatíveis:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[Visão geral do GameInput](https://docs.xbox.com/pt-BR/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputForceFeedbackEffect::SetGain](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)\
[IGameInputDevice::SetForceFeedbackMotorGain](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md)\
[IGameInputForceFeedbackEffect](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)

## Histórico de versões

| Versão | Alterações |
| - | - |
| **v0** | Introduzido. |


## Related topics

- [IGameInputForceFeedbackEffect::SetGain](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect (conteúdo da interface)](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)
- [IGameInputForceFeedbackEffect::GetDevice](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getdevice.md)
- [IGameInputForceFeedbackEffect::GetState](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getstate.md)
- [IGameInputForceFeedbackEffect::SetState](https://docs.xbox.com/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setstate.md)
