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

# GameInputTouchState (非推奨)

> GameInputTouchState

# GameInputTouchState

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

入力読み取り中の単一のタッチ コンタクト ポイントの状態を記述します。

## 構文

```cpp theme={null}
typedef struct GameInputTouchState {
    uint64_t touchId;
    uint32_t sensorIndex;
    float positionX;
    float positionY;
    float pressure;
    float proximity;
    float contactRectTop;
    float contactRectLeft;
    float contactRectRight;
    float contactRectBottom;
} GameInputTouchState;
```

## メンバー

**touchId**\
型: uint64\_t

このタッチ コンタクトの一意識別子で、読み取り間で追跡されます。

**sensorIndex**\
型: uint32\_t

このコンタクトを生成したタッチ センサーのインデックスです。

**positionX, positionY**\
型: float

センサー表面上のコンタクトの正規化位置で、範囲は \[0.0, 1.0] です。

**pressure**\
型: float

コンタクトの正規化された圧力で、範囲は \[0.0, 1.0] です。

**proximity**\
型: float

コンタクトの正規化された近接度で、範囲は \[0.0, 1.0] です。

**contactRectTop, contactRectLeft, contactRectRight, contactRectBottom**\
型: float

センサー表面上のコンタクト領域の境界矩形 (正規化座標) です。

## 解説

この構造体は非推奨の [IGameInputReading::GetTouchState](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md) メソッドを通じて読み取られました。両方とも v1 で削除されました。

## バージョン履歴

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

## 関連項目

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


## Related topics

- [GameInputTouchSensorInfo (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)
- [IGameInputReading::GetTouchState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
- [IGameInputReading::GetTouchCount (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
- [非推奨の GameInput API メンバー](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
- [GameInputTouchShape (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/enums/gameinputtouchshape.md)
