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

# Gyroscope

> Gyroscope

# Gyroscope

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

## プロパティ

`type` - "gyroscope"

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

## 補足

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

[`touchpad`](https://docs.xbox.com/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

- [ResponseCurve](https://docs.xbox.com/ja-jp/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)
- [Axis](https://docs.xbox.com/ja-jp/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md)
- [Deadzone](https://docs.xbox.com/ja-jp/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md)
- [Touch Adaptation Kit](https://docs.xbox.com/ja-jp/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [Touch Adaptation Kit (TAK) リファレンス](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
