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

> IGameInputReading::GetTouchState

> [!WARNING]
>
> **Deprecated.** This method was removed in GameInput v1 and is not available in the current API. This method was never implemented on PC.

Gets the touch input state for all active contacts in the reading.

## Syntax

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

### Parameters

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

The number of elements in the `stateArray`.

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

An array of [GameInputTouchState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md) structures to fill with touch contact data.

### Return value

Type: uint32\_t

The number of [GameInputTouchState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md) entries written to `stateArray`.

## Remarks

This method was removed in v1. Call [GetTouchCount](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md) first to determine the required array size, then call `GetTouchState` with an appropriately sized array.

## 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::GetTouchCount](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)\
[GameInputTouchState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md)\
[IGameInputReading](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)


## Related topics

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