> ## 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-CA/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 bâton analogique droit |
| LEFT\_THUMBSTICK | Le bâton analogique 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'inscription |
| NONE | Valeur qui indique 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 qui représente plusieurs boutons enfoncés. **GAMEPAD\_BUTTONS** est un membre de la structure [GAMEPAD\_REPORT](/fr-CA/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 bâtons, 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-CA/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-CA/reference/tools/xtf/xtfinput/xtfinput-xbox-microsoft-n)\
[GAMEPAD\_REPORT](/fr-CA/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t)\
[IXtfInputClient](/fr-CA/reference/tools/xtf/xtfinput/classes/IXtfInputClient/ixtfinputclient-xtfinput-xbox-windows-t)


## Related topics

- [GAMEPAD_MORE_BUTTONS](/fr-CA/reference/tools/xtf/xtfinput/enumerations/gamepad_more_buttons.md)
- [GameInputGamepadButtons](/fr-CA/reference/input/gameinput/enums/gameinputgamepadbuttons.md)
- [IGameInputMapper::GetGamepadButtonMapping](/fr-CA/reference/input/gameinput/interfaces/igameinputmapper/methods/igameinputmapper_getgamepadbuttonmappinginfo.md)
- [GAMEPAD_REPORT_EX](/fr-CA/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
- [Structure GAMEPAD_REPORT](/fr-CA/reference/tools/xtf/xtfinput/structures/GAMEPAD_REPORT-xtfinput-xbox-windows-t.md)
