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

> IGameInput::FindDeviceFromPlatformString

# IGameInput::FindDeviceFromPlatformString

基于匹配的平台字符串检索 `IGameInputDevice` 接口。

## 语法

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

### 参数

*value*   \_In\_\
类型：LPCWSTR

要匹配的平台字符串。

*device*   \_COM\_Outptr\_\
类型：IGameInputDevice\*\*

返回的 [IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice) 接口。

### 返回值

类型：HRESULT

[高级 GameInput 主题](/build/core-features/common/input/advanced/input-advanced-topics)\
[GameInput 概述](/build/core-features/common/input/overviews/input-overview)\
[IGameInput](/reference/input/gameinput/interfaces/igameinput/igameinput)

## 版本历史

| 版本     | 变更  |
| ------ | --- |
| **v0** | 引入。 |


## Related topics

- [IGameInput::FindDeviceFromPlatformHandle](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromplatformhandle.md)
- [IGameInput::FindDeviceFromObject](/zh-CN/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromobject.md)
- [IGameInput::FindDeviceFromId](/zh-CN/reference/input/gameinput/interfaces/igameinput/methods/igameinput_finddevicefromid.md)
- [已弃用的 GameInput API 成员](/zh-CN/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [APP_LOCAL_DEVICE_ID](/zh-CN/reference/system/xuser/structs/app_local_device_id.md)
