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

# IGameInput::FindDeviceFromObject (en desuso)

> IGameInput::FindDeviceFromObject

# IGameInput::FindDeviceFromObject

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

Recupera una interfaz [IGameInputDevice](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md) basándose en una referencia de objeto COM de plataforma coincidente.

## Sintaxis

```cpp theme={null}
HRESULT FindDeviceFromObject(
    IUnknown* value,
    IGameInputDevice** device
);
```

### Parámetros

*value*   \_In\_\
Tipo: IUnknown\*

Un objeto COM de plataforma (como una instancia de IDirectInputDevice8) con el que buscar coincidencias.

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

La interfaz [IGameInputDevice](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md) devuelta.

### Valor devuelto

Tipo: HRESULT

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

## Comentarios

Este método permitía a las aplicaciones recuperar una interfaz de dispositivo de GameInput a partir de un objeto de plataforma existente, como un dispositivo DirectInput. Se quitó en v1. Las alternativas activas son [FindDeviceFromId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md) y [FindDeviceFromPlatformString](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.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)\
[IGameInput::FindDeviceFromId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)\
[IGameInput::FindDeviceFromPlatformString](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md)\
[IGameInput](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinput/igameinput.md)


## Related topics

- [IGameInput::FindDeviceFromPlatformHandle (en desuso)](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromplatformhandle.md)
- [IGameInput::EnableOemDeviceSupport (en desuso)](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_enableoemdevicesupport.md)
- [IGameInputDevice::PowerOff (en desuso)](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_poweroff.md)
- [IGameInputDevice::SetRawDeviceFeature (en desuso)](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
- [IGameInputDevice::GetRawDeviceFeature (en desuso)](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getrawdevicefeature.md)
