> ## 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::FindDeviceFromPlatformString

> IGameInput::FindDeviceFromPlatformString

Retrieves an `IGameInputDevice` interface based on a matching platform string.

## Syntax

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

### Parameters

*value*   \_In\_\
Type: LPCWSTR

Platform string to match.

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

Returned [IGameInputDevice](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md) interface.

### Return value

Type: HRESULT

[Advanced GameInput topics](https://docs.xbox.com/build/core-features/common/input/advanced/input-advanced-topics.md)\
[IOverview of GameInput](https://docs.xbox.com/build/core-features/common/input/overviews/input-overview.md)\
[IGameInput](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/igameinput.md)

## Version History

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


## Related topics

- [IGameInput::FindDeviceFromPlatformHandle (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromplatformhandle.md)
- [IGameInput::FindDeviceFromObject (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromobject.md)
- [IGameInput::FindDeviceFromId](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)
- [IGameInput (Interface contents)](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinput/igameinput.md)
- [Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
