> ## 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>**Preterido.** Este método foi removido no GameInput v1 e não está disponível na API atual.</Warning>

Obtém o estado de movimento (acelerômetro e giroscópio) da leitura.

## Sintaxe

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

### Parâmetros

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

Um ponteiro para uma estrutura [GameInputMotionState](/pt-BR/reference/input/gameinput/deprecated/structs/gameinputmotionstate) a ser preenchida com dados de movimento.

### Valor retornado

Tipo: bool

Retorna `true` se a leitura contiver estado de movimento; caso contrário, `false`.

## Comentários

Este método e a estrutura [GameInputMotionState](/pt-BR/reference/input/gameinput/deprecated/structs/gameinputmotionstate) associada foram removidos na v1. O estado de movimento estava disponível em dispositivos que expunham eixos de acelerômetro e giroscópio.

## Histórico de versões

| Versão | Alterações |
| - | - |
| **v1** | Removido. |
| **v0** | Introduzido. |

## Confira também

[Membros preteridos da API GameInput](/pt-BR/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[GameInputMotionState](/pt-BR/reference/input/gameinput/deprecated/structs/gameinputmotionstate)\
[IGameInputReading](/pt-BR/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)


## Related topics

- [IGameInputReading::GetMotionState](/ko/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
- [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
