> ## 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>**Deprecated.** This structure was removed in GameInput v1 and is not available in the current API.</Warning>

Describes the current accelerometer, gyroscope, and magnetometer state from an input reading.

## Syntax

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

## Members

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

The measured linear acceleration in m/s² along each axis.

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

The measured angular velocity in degrees/s around each axis.

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

The measured magnetic field strength in gauss along each axis.

## Remarks

This structure was returned by the deprecated [IGameInputReading::GetMotionState](/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate) method. Both were removed in v1.

## Version History

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

## See also

[Deprecated GameInput API members](/reference/input/gameinput/deprecated/gameinput_deprecated_members)
[IGameInputReading::GetMotionState](/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate)
[GameInputMotionInfo](/reference/input/gameinput/deprecated/structs/gameinputmotioninfo)
