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

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](/reference/system/touchadaptationkit/types/game-streaming-touch-axis) or array of [axes](/reference/system/touchadaptationkit/types/game-streaming-touch-axis) that describe the mapping of this touchpad control.

## Remarks

<Warning>The gyroscope control may not be available on all devices that support touch layouts.</Warning>

Like the [`touchpad`](/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](/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](/reference/input/gameinput/deprecated/interfaces/igameinputreading/methods/igameinputreading_getmotionstate.md)
- [GameInputMotionState](/reference/input/gameinput/deprecated/structs/gameinputmotionstate.md)
- [Touch Adaptation Kit (TAK) Reference](/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
