> ## 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>**En desuso.** Este método se quitó en GameInput v1 y no está disponible en la API actual.</Warning>

Obtiene el estado de movimiento (acelerómetro y giroscopio) de la lectura.

## Sintaxis

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

### Parámetros

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

Un puntero a una estructura [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate) que se rellena con los datos de movimiento.

### Valor devuelto

Tipo: bool

Devuelve `true` si la lectura contiene estado de movimiento; `false` en caso contrario.

## Comentarios

Este método y la estructura [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate) asociada se quitaron en v1. El estado de movimiento estaba disponible en los dispositivos que exponían ejes de acelerómetro y giroscopio.

## Historial de versiones

| Versión | Cambios       |
| ------- | ------------- |
| **v1**  | Se quitó.     |
| **v0**  | Se introdujo. |

## Consulte también

[Miembros de la API de GameInput en desuso](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)


## Related topics

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