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

# IGameInputForceFeedbackEffect::GetDevice

> IGameInputForceFeedbackEffect::GetDevice

# IGameInputForceFeedbackEffect::GetDevice

Recupera el dispositivo asociado al efecto de retroalimentación de fuerza.

## Sintaxis

```cpp theme={null}
void GetDevice(
    IGameInputDevice** device
);
```

### Parámetros

*device*   \_Outptr\_\
Tipo: IGameInputDevice\*\*

Este método devuelve el dispositivo asociado al efecto de retroalimentación de fuerza.

### Valor devuelto

Tipo: void

No devuelve nada.

## Comentarios

El método `IGameInputForceFeedbackEffect::GetDevice` recupera el dispositivo asociado al efecto de retroalimentación de fuerza. El objeto [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) representa un dispositivo de entrada. Los métodos de la interfaz `IGameInputDevice` le permiten identificar un dispositivo de entrada de juego e interactuar con él. Puede consultar información sobre el dispositivo, como su tipo y sus capacidades. También puede activar hardware específico del dispositivo, como la retroalimentación háptica y de fuerza. Para obtener más información, consulte [Temas avanzados de GameInput](/build/core-features/common/input/advanced/input-advanced-topics).

## 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](/build/core-features/common/input/overviews/input-overview)\
[IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect)

## Historial de versiones

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


## Related topics

- [IGameInputForceFeedbackEffect::GetGain](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputForceFeedbackEffect::SetGain](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetParams](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getparams.md)
- [IGameInputForceFeedbackEffect::GetState](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getstate.md)
- [IGameInputForceFeedbackEffect::SetState](/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setstate.md)
