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

# IGameInputReading::GetMotionState (Deprecated)

> IGameInputReading::GetMotionState

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

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

## Syntax

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

### Parameters

*state*   \_Out\_\
Type: [GameInputMotionState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)\*

A pointer to a [GameInputMotionState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md) 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](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md) 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](https://docs.xbox.com/reference/input/gameinput/deprecated/gameinput_deprecated_members.md)\
[GameInputMotionState](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)\
[IGameInputReading](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)


## Related topics

- [GameInputMotionState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
- [IGameInputReading::GetTouchState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchstate.md)
- [IGameInputReading::GetUiNavigationState (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getuinavigationstate.md)
- [IGameInputReading::GetTouchCount (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_gettouchcount.md)
- [IGameInput::GetTemporalReading (Deprecated)](https://docs.xbox.com/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_gettemporalreading.md)
