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

# Bouton rotatif (knob)

> Bouton rotatif (knob)

# Bouton rotatif (knob)

Les attributs de style d'un composant semblable à un bouton avec lequel le joueur peut interagir.

## Propriétés

`background` - *objet*, *facultatif*. Peut être une [couleur](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-color) ou une [ressource d'image](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-asset).

`faceImage` - *objet*, *facultatif*. Peut être une [icône](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-icon) ou une [ressource d'image](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-asset).

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

[`stroke`](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-stroke) - *objet*, *facultatif*. Instructions de style du [trait](/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-stroke) à utiliser sur le contour du composant.

## Exemple

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

## Remarques

`knob` est un composant d'un contrôle plus complexe (p. ex., [joystick](/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick),
[throttle](/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle))
avec lequel le joueur peut interagir.

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

## Contrôles associés

[Joystick](/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick)\
[Throttle](/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle)

## Voir aussi

[Référence du Touch Adaptation Kit](/fr-CA/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview)


## Related topics

- [Touch Adaptation Kit](/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [Étapes du test de validation des supports](/fr/publishing/game-publishing/concepts/certification/certification-media-validation-test-steps.md)
- [Étapes de test de validation des supports](/fr-CA/publishing/game-publishing/concepts/certification/certification-media-validation-test-steps.md)
- [Ressources d'accessibilité pour les développeurs](/fr/build/game-principles/accessibility/accessibility-resources.md)
- [Mises à niveau de compte](/fr-CA/services/playfab/pricing/account-upgrades.md)
