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

# IGameInputReading::GetTouchState (非推奨)

> IGameInputReading::GetTouchState

# IGameInputReading::GetTouchState

> [!WARNING]
>
> **非推奨。** このメソッドは GameInput v1 で削除され、現在の API では利用できません。このメソッドは PC では実装されていませんでした。

読み取り中のすべてのアクティブなコンタクトのタッチ入力状態を取得します。

## 構文

```cpp theme={null}
uint32_t GetTouchState(
    uint32_t stateArrayCount,
    GameInputTouchState* stateArray
);
```

### パラメーター

*stateArrayCount*   \_In\_\
型: uint32\_t

`stateArray` の要素数です。

*stateArray*   \_Out\_writes\_(stateArrayCount)\_\
型: [GameInputTouchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md)\*

タッチ コンタクト データが格納される [GameInputTouchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md) 構造体の配列です。

### 戻り値

型: uint32\_t

`stateArray` に書き込まれた [GameInputTouchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md) エントリの数です。

## 解説

このメソッドは v1 で削除されました。まず [GetTouchCount](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md) を呼び出して必要な配列サイズを判別し、その後、適切なサイズの配列で `GetTouchState` を呼び出します。

## バージョン履歴

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

## 関連項目

[非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[IGameInputReading::GetTouchCount](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)\
[GameInputTouchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md)\
[IGameInputReading](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)


## Related topics

- [IGameInputReading::GetTouchCount (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
- [GameInputTouchState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md)
- [IGameInputReading::GetMotionState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
- [IGameInputReading::GetUiNavigationState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getuinavigationstate.md)
- [IGameInput::GetTemporalReading (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_gettemporalreading.md)
