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

# Gyroscope

> Gyroscope

# Gyroscope

デバイスの物理的な動きを指定された軸のセットにマップするセンサー コントロール。

## プロパティ

`type` - "gyroscope"

`axis` - *object* または *array*。このタッチパッド コントロールのマッピングを記述する単一の [axis](/ja-jp/reference/system/touchadaptationkit/types/game-streaming-touch-axis)、または [axes](/ja-jp/reference/system/touchadaptationkit/types/game-streaming-touch-axis) の配列。

## 補足

> [!WARNING]
>
> gyroscope コントロールは、タッチ レイアウトをサポートするすべてのデバイスで利用できるとは限りません。

[`touchpad`](/ja-jp/reference/system/touchadaptationkit/controls/game-streaming-touch-touchpad) と同様に、gyroscope は通常、一人称/三人称視点のゲームでプレイヤーの視点カメラを制御するために使用されます。調整を行うことで、gyroscope を使用してプレイヤーのコントロールにマウスのような精度をもたらすことができます。

## サンプル

```JSON theme={null}
指定した感度を使用して、デバイスの動きを right ジョイスティックにマップします。
{
    "type": "gyroscope",
    "axis": {
        "input": "axisXY",
        "output": "rightJoystick",
        "sensitivity": 0.3
    },
}
```

```JSON theme={null}
指定した感度を使用して、デバイスの動きを相対マウス移動にマップします。
{
    "type": "gyroscope",
    "axis": {
        "input": "axisXY",
        "output": "relativeMouse",
        "sensitivity": 6.3
    },
}
```

## 要件

**レイアウト バージョン:** 1.0 以上


## Related topics

- [A designer's guide to building touch controls](/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-designers-guide.md)
- [Guide du concepteur pour la création de commandes tactiles](/fr/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-designers-guide.md)
- [Touch Adaptation Kit](/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [IGameInputReading::GetMotionState (Deprecated)](/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
- [GameInputMotionState (Deprecated)](/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
