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

# IGameInputReading::GetMotionState

> IGameInputReading::GetMotionState

# IGameInputReading::GetMotionState

<Warning>**Deprecated.** This method was removed in GameInput v1 and is not available in the current API.</Warning>

Gets the motion (accelerometer and gyroscope) state from the reading.

## Syntax

```cpp theme={null}
bool GetMotionState(
    GameInputMotionState* state
);
```

### Parameters

*state*   \_Out\_\
Type: [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate)\*

A pointer to a [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate) structure to fill with motion data.

### Return value

Type: bool

Returns `true` if the reading contains motion state; `false` otherwise.

## Remarks

This method and the associated [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate) struct were removed in v1. Motion state was available on devices that exposed accelerometer and gyroscope axes.

## Version History

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

## See also

[Deprecated GameInput API members](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)


## Related topics

- [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
- [IGameInputReading::GetGamepadState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getgamepadstate.md)
- [IGameInputReading::GetSensorsState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getsensorsstate.md)
- [IGameInputReading::GetKeyState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)
- [IGameInputReading::GetMouseState](/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getmousestate.md)
