> ## 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>**非推奨。** このメソッドは GameInput v1 で削除され、現在の API では利用できません。</Warning>

読み取りからモーション (加速度計とジャイロスコープ) の状態を取得します。

## 構文

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

### パラメーター

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

モーション データが格納される [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate) 構造体へのポインターです。

### 戻り値

型: bool

読み取りがモーション状態を含む場合は `true`、それ以外の場合は `false` を返します。

## 解説

このメソッドと関連する [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate) 構造体は v1 で削除されました。モーション状態は加速度計とジャイロスコープの軸を公開するデバイスで利用可能でした。

## バージョン履歴

| バージョン  | 変更内容     |
| ------ | -------- |
| **v1** | 削除されました。 |
| **v0** | 導入されました。 |

## 関連項目

[非推奨の GameInput API メンバー](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate)\
[IGameInputReading](/reference/input/gameinput/interfaces/igameinputreading/igameinputreading)


## Related topics

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