> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GameInputMotionState

> GameInputMotionState

# GameInputMotionState

<Warning>**Obsolète.** Cette structure a été supprimée dans GameInput v1 et n'est pas disponible dans l'API actuelle.</Warning>

Décrit l'état actuel de l'accéléromètre, du gyroscope et du magnétomètre issu d'une lecture d'entrée.

## Syntaxe

```cpp theme={null}
typedef struct GameInputMotionState {
    float accelerationX;
    float accelerationY;
    float accelerationZ;
    float angularVelocityX;
    float angularVelocityY;
    float angularVelocityZ;
    float magneticFieldX;
    float magneticFieldY;
    float magneticFieldZ;
} GameInputMotionState;
```

## Membres

**accelerationX, accelerationY, accelerationZ**\
Type : float

Accélération linéaire mesurée, en m/s², le long de chaque axe.

**angularVelocityX, angularVelocityY, angularVelocityZ**\
Type : float

Vitesse angulaire mesurée, en degrés/s, autour de chaque axe.

**magneticFieldX, magneticFieldY, magneticFieldZ**\
Type : float

Intensité du champ magnétique mesurée, en gauss, le long de chaque axe.

## Remarques

Cette structure était retournée par la méthode obsolète [IGameInputReading::GetMotionState](/fr/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate). Les deux ont été supprimées dans v1.

## Historique des versions

| Version | Modifications |
| - | - |
| **v1** | Supprimée. |
| **v0** | Introduite. |

## Voir aussi

[Membres obsolètes de l'API GameInput](/fr/reference/input/gameinput/deprecated/gameinput_deprecated_members)
[IGameInputReading::GetMotionState](/fr/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate)
[GameInputMotionInfo](/fr/reference/input/gameinput/deprecated/structs/gameinputmotioninfo)


## Related topics

- [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
- [IGameInputReading::GetMotionState](/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
