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

Un contrôle de capteur qui mappe le mouvement physique de l'appareil à un ensemble d'axes spécifié.

## Propriétés

`type` - "gyroscope"

`axis` - *object* ou *array*. Un seul [axe](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-axis) ou un tableau d'[axes](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-axis) qui décrivent le mappage de ce contrôle de pavé tactile.

## Remarques

<Warning>Le contrôle de gyroscope pourrait ne pas être disponible sur tous les appareils qui prennent en charge les dispositions tactiles.</Warning>

Comme le [`touchpad`](/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-touchpad), le gyroscope est généralement utilisé dans les jeux à la première ou à la troisième personne pour contrôler la caméra de visée du joueur. Avec un réglage adéquat, le gyroscope peut offrir au joueur une précision comparable à celle d'une souris.

## Exemples

```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
    },
}
```

## Configuration requise

**Version de la disposition :** 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)
