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

# GameInputString (非推奨)

> GameInputString

# GameInputString

> [!WARNING]
>
> **非推奨。** この構造体は GameInput v1 で削除され、現在の API では利用できません。

GameInput の構造体でデバイス識別フィールドに使用される文字列値を表します。

## 構文

```cpp theme={null}
typedef struct GameInputString {
    uint32_t sizeInBytes;
    uint32_t codePointCount;
    const char* data;
} GameInputString;
```

## メンバー

**sizeInBytes**\
型: uint32\_t

文字列データのサイズ (バイト単位) です。null 終端文字は含みません。

**codePointCount**\
型: uint32\_t

文字列内の Unicode コード ポイントの数です。

**data**\
型: const char\*

UTF-8 でエンコードされた文字列データへのポインターです。必ずしも null 終端されているとは限りません。

## 解説

この型は v0 の `GameInputDeviceInfo` 構造体の文字列フィールド (`displayName`、`deviceFamily`、`hardwareVersion` など) に使用されていました。これらの文字列フィールドが [GameInputDeviceInfo](https://docs.xbox.com/ja-jp/reference/input/gameinput/structs/gameinputdeviceinfo.md) から削除されたときに、v1 で削除されました。

## バージョン履歴

| バージョン | 変更内容 |
| - | - |
| **v1** | 削除されました。 |
| **v0** | 導入されました。 |

## 関連項目

[非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)


## Related topics

- [非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [IGameInput::FindDeviceFromObject (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromobject.md)
- [IGameInput::FindDeviceFromPlatformHandle (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_finddevicefromplatformhandle.md)
- [GameInputLocation (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/enums/gameinputlocation.md)
- [GameInputMotionInfo (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputmotioninfo.md)
