> ## 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 (déprécié)

> GameInputTouchState

# GameInputTouchState

> [!WARNING]
>
> **Déconseillé.** Cette structure a été supprimée dans GameInput v1 et n'est pas disponible dans l'API actuelle.

Décrit l'état d'un point de contact tactile unique dans une lecture d'entrée.

## Syntaxe

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

## Membres

**touchId**\
Type : uint64\_t

Un identificateur unique pour ce contact tactile, suivi d'une lecture à l'autre.

**sensorIndex**\
Type : uint32\_t

L'index du capteur tactile ayant produit ce contact.

**positionX, positionY**\
Type : float

La position normalisée du contact sur la surface du capteur, dans la plage \[0.0, 1.0].

**pressure**\
Type : float

La pression normalisée du contact, dans la plage \[0.0, 1.0].

**proximity**\
Type : float

La proximité normalisée du contact, dans la plage \[0.0, 1.0].

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

Le rectangle englobant de la zone de contact sur la surface du capteur, en coordonnées normalisées.

## Remarques

Cette structure était lue au moyen de la méthode déconseillée [IGameInputReading::GetTouchState](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md). Les deux ont été supprimées dans v1.

## Historique des versions

| Version | Modifications |
| - | - |
| **v1** | Supprimé. |
| **v0** | Introduit. |

## Voir aussi

[Membres déconseillés de l'API GameInput](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)
[IGameInputReading::GetTouchState](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
[IGameInputReading::GetTouchCount](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
[GameInputTouchSensorInfo](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)


## Related topics

- [IGameInputReading::GetTouchState (déprécié)](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
- [GameInputTouchSensorInfo (déprécié)](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/structs/gameinputtouchsensorinfo.md)
- [IGameInputReading::GetTouchCount (déprécié)](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
- [GameInputTouchShape (déprécié)](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/enums/gameinputtouchshape.md)
- [GameInputMotionState (déprécié)](https://docs.xbox.com/fr-CA/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
