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

# Énumération GAMEPAD_BUTTONS

> Énumération GAMEPAD_BUTTONS

# Énumération GAMEPAD\_BUTTONS

Indicateurs d'identification des boutons de la manette.

Les valeurs **GAMEPAD\_BUTTONS** sont utilisées dans une structure [GAMEPAD\_REPORT](/fr/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t) pour indiquer les boutons actuellement enfoncés.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
typedef enum GAMEPAD_BUTTONS
{
    RIGHT_THUMBSTICK = 0x8000,
    LEFT_THUMBSTICK = 0x4000,
    RIGHT_SHOULDER = 0x2000,
    LEFT_SHOULDER = 0x1000,
    DPAD_RIGHT = 0x800,
    DPAD_LEFT = 0x400,
    DPAD_DOWN = 0x200,
    DPAD_UP = 0x100,
    Y = 0x80,
    X = 0x40,
    B = 0x20,
    A = 0x10,
    VIEW = 0x8,
    MENU = 0x4,
    NEXUS = 0x2,
    ENROLL = 0x1,
    NONE = 0
} GAMEPAD_BUTTONS, *PGAMEPAD_BUTTONS;  
```

<a id="ID4E6C" />

## Constantes

| Constante | Description |
| - | - |
| RIGHT\_THUMBSTICK | Le stick droit |
| LEFT\_THUMBSTICK | Le stick gauche |
| RIGHT\_SHOULDER | Le bouton supérieur droit |
| LEFT\_SHOULDER | Le bouton supérieur gauche |
| DPAD\_RIGHT | Le bouton droit du pavé directionnel |
| DPAD\_LEFT | Le bouton gauche du pavé directionnel |
| DPAD\_DOWN | Le bouton bas du pavé directionnel |
| DPAD\_UP | Le bouton haut du pavé directionnel. |
| Y | Le bouton Y |
| X | Le bouton X |
| B | Le bouton B |
| A | Le bouton A |
| VIEW | Le bouton Affichage |
| MENU | Le bouton Menu |
| NEXUS | Le bouton Nexus |
| ENROLL | Le bouton d'association |
| NONE | Valeur indiquant qu'aucun bouton n'est actuellement enfoncé. |

<a id="requirements" />

## Remarques

**GAMEPAD\_BUTTONS** est une énumération d'indicateurs : les valeurs peuvent donc être combinées en une seule valeur représentant plusieurs boutons enfoncés. **GAMEPAD\_BUTTONS** est un membre de la structure [GAMEPAD\_REPORT](/fr/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t). Il est combiné à des informations supplémentaires sur les entrées autres que les boutons, comme les valeurs des gâchettes et des sticks, pour représenter l'état d'un périphérique d'entrée de type manette. Ces états sont envoyés à une console à l'aide de [IXtfInputClient](/fr/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t).

## Configuration requise

**En-tête :** xtfinput.h

**Bibliothèque :** xtfinput.lib

**Plateformes prises en charge :** Windows (pour les outils de console XBOX)

## Voir aussi

[XtfInput](/fr/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n)\
[GAMEPAD\_REPORT](/fr/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t)\
[IXtfInputClient](/fr/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t)


## Related topics

- [GAMEPAD_BUTTONS Enumeration](/zh-CN/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t.md)
- [GAMEPAD_BUTTONS (enumeración)](/es/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t.md)
- [GAMEPAD_BUTTONS 列挙型](/ja-jp/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t.md)
- [GAMEPAD_BUTTONS 열거형](/ko/reference/tools/xtf/xtfinput/enumerations/GAMEPAD_BUTTONS-typedef-xtfinput-xbox-windows-t.md)
- [GAMEPAD_MORE_BUTTONS](/reference/tools/xtf/xtfinput/enumerations/gamepad_more_buttons.md)
