> ## 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 (Deprecated)

> GameInputTouchState

> [!WARNING]
>
> **Deprecated.** This structure was removed in GameInput v1 and is not available in the current API.

Describes the state of a single touch contact point in an input reading.

## Syntax

```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;
```

## Members

**touchId**\
Type: uint64\_t

A unique identifier for this touch contact, tracked across readings.

**sensorIndex**\
Type: uint32\_t

The index of the touch sensor that produced this contact.

**positionX, positionY**\
Type: float

The normalized position of the contact on the sensor surface, in the range \[0.0, 1.0].

**pressure**\
Type: float

The normalized pressure of the contact, in the range \[0.0, 1.0].

**proximity**\
Type: float

The normalized proximity of the contact, in the range \[0.0, 1.0].

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

The bounding rectangle of the contact area on the sensor surface, in normalized coordinates.

## Remarks

This structure was read via the deprecated [IGameInputReading::GetTouchState](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md) method. Both were removed in v1.

## Version History

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

## See also

[Deprecated GameInput API members](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
[IGameInputReading::GetTouchState](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
[IGameInputReading::GetTouchCount](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
[GameInputTouchSensorInfo](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)


## Related topics

- [IGameInputReading::GetTouchState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
- [GameInputTouchSensorInfo (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)
- [IGameInputReading::GetTouchCount (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
- [GameInputTouchShape (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/enums/gameinputtouchshape.md)
- [GameInputBatteryState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md)
