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

# Bouton rotatif (knob)

> Bouton rotatif (knob)

# Bouton rotatif (knob)

Attributs de style d'un composant de type bouton avec lequel le joueur peut interagir.

## Propriétés

`background` - *object*, *facultatif*. Peut être une [couleur](https://docs.xbox.com/fr/reference/system/touchadaptationkit/types/game-streaming-touch-color.md) ou une [ressource image](https://docs.xbox.com/fr/reference/system/touchadaptationkit/types/game-streaming-touch-asset.md).

`faceImage` - *object*, *facultatif*. Peut être une [icône](https://docs.xbox.com/fr/reference/system/touchadaptationkit/types/game-streaming-touch-icon.md) ou une [ressource image](https://docs.xbox.com/fr/reference/system/touchadaptationkit/types/game-streaming-touch-asset.md).

`opacity` - *number*, *facultatif*. Opacité à appliquer au composant. La valeur par défaut est 1.0 pour tous les états sauf `disabled`.

[`stroke`](https://docs.xbox.com/fr/reference/system/touchadaptationkit/types/game-streaming-touch-stroke) - *object*, *facultatif*. Instructions de style du [trait](https://docs.xbox.com/fr/reference/system/touchadaptationkit/types/game-streaming-touch-stroke.md) à utiliser sur le contour du composant.

## Exemple

```JSON theme={null}
{
    "knob": {
        "background" : {
            "type": "color",
            "value":  "#107C10"
        },
        "faceImage" : {
            "type": "icon",
            "value": "run"
        }
    },
}
```

## Remarques

L'élément `knob` est un composant d'un contrôle plus complexe (par exemple, [joystick](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md),
[throttle](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md))
avec lequel le joueur peut interagir.

Le style visuel par défaut de l'élément `knob` diffère selon le contrôle.

## Contrôles associés

[Joystick](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md)\
[Throttle](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md)

## Voir aussi

[Référence du Touch Adaptation Kit](https://docs.xbox.com/fr/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)


## Related topics

- [Touch Adaptation Kit](https://docs.xbox.com/fr/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [Bouton](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-button.md)
- [Accélérateur](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md)
- [Référence du Touch Adaptation Kit (TAK)](https://docs.xbox.com/fr/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
- [Joystick](https://docs.xbox.com/fr/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md)
