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

A sensor control that maps the devices physical movement to a specified set of axes.

## Properties

`type` - "gyroscope"

`axis` - *object* or *array*. A single [axis](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md) or array of [axes](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md) that describe the mapping of this touchpad control.

## Remarks

> [!WARNING]
>
> The gyroscope control may not be available on all devices that support touch layouts.

Like the [`touchpad`](https://docs.xbox.com/reference/system/touchadaptationkit/controls/game-streaming-touch-touchpad), the gyroscope is typically used in first/third-person perspective games to control the player look camera. With tuning using the gyroscope can bring mouse-like precision to the player's control.

## Samples

```JSON theme={null}
Map the movement of the device to the right joystick, using a specified sensitivity.
{
    "type": "gyroscope",
    "axis": {
        "input": "axisXY",
        "output": "rightJoystick",
        "sensitivity": 0.3
    },
}
```

```JSON theme={null}
Map the movement of the device to relative mouse movement, using a specified sensitivity.
{
    "type": "gyroscope",
    "axis": {
        "input": "axisXY",
        "output": "relativeMouse",
        "sensitivity": 6.3
    },
}
```

## Requirements

**Layout Version:** 1.0+


## Related topics

- [A designer's guide to building touch controls](https://docs.xbox.com/build/core-features/common/game-streaming/building-touch-layouts/game-streaming-tak-designers-guide.md)
- [Touch Adaptation Kit](https://docs.xbox.com/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [ResponseCurve](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)
- [Axis](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md)
- [Deadzone](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md)
