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

# IGameInput::FindDeviceFromObject

> IGameInput::FindDeviceFromObject

# IGameInput::FindDeviceFromObject

<Warning>**Deprecated.** This method was removed in GameInput v1 and is not available in the current API.</Warning>

Retrieves an [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) interface based on a matching platform COM object reference.

## Syntax

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

### Parameters

*value*   \_In\_\
Type: IUnknown\*

A platform COM object (such as an IDirectInputDevice8 instance) to match against.

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

The returned [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) interface.

### Return value

Type: HRESULT

Returns E\_NOTIMPL, as this method was never implemented in v0.

## Remarks

This method allowed applications to retrieve a GameInput device interface from an existing platform object such as a DirectInput device. It was removed in v1. The active alternatives are [FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid) and [FindDeviceFromPlatformString](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring).

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v1**  | Removed.    |
| **v0**  | Introduced. |

## See also

[Deprecated GameInput API members](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[IGameInput::FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid)\
[IGameInput::FindDeviceFromPlatformString](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring)\
[IGameInput](/reference/input/gameinput/interfaces/igameinput/igameinput)


## Related topics

- [IGameInput::FindDeviceFromId](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)
- [IGameInput::FindDeviceFromPlatformHandle](/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromplatformhandle.md)
- [IGameInput::FindDeviceFromPlatformString](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromplatformstring.md)
- [IGameInput::RegisterDeviceCallback](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)
- [IGameInput::CreateAggregateDevice](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createaggregatedevice.md)
