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

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](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-color.md) ou une [ressource d'image](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-asset.md).

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

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

[`stroke`](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/types/game-streaming-touch-stroke) - *objet*, *facultatif*. Instructions de style du [trait](https://docs.xbox.com/fr-CA/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

`knob` est un composant d'un contrôle plus complexe (p. ex., [joystick](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md),
[throttle](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md))
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](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md)\
[Throttle](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md)

## Voir aussi

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


## Related topics

- [Touch Adaptation Kit](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/touchadaptationkit-reference.md)
- [Bouton](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-button.md)
- [Accélérateur](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md)
- [Référence de la trousse d'adaptation tactile (TAK)](https://docs.xbox.com/fr-CA/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)
- [Manette de jeu](https://docs.xbox.com/fr-CA/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md)
