> ## 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.

# GameInputMotionState (Deprecated)

> GameInputMotionState

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

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](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.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::GetMotionState](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
[GameInputMotionInfo](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotioninfo.md)


## Related topics

- [IGameInputReading::GetMotionState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
- [GameInputMotionInfo (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotioninfo.md)
- [GameInputMotionAccuracy (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/enums/gameinputmotionaccuracy.md)
- [GameInputBatteryState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputbatterystate.md)
- [GameInputTouchState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputtouchstate.md)
