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

# XFrontPanelButton

> XFrontPanelButton

# XFrontPanelButton

Enumerates front panel buttons, including the directional button (D-pad).

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
enum class XFrontPanelButton : uint32_t  
{  
    None = 0x0,  
    Button1 = 0x1,  
    Button2 = 0x2,  
    Button3 = 0x4,  
    Button4 = 0x8,  
    Button5 = 0x10,  
    DPadLeft = 0x20,  
    DPadRight = 0x40,  
    DPadUp = 0x80,  
    DPadDown = 0x100,  
    DPadSelect = 0x200,  
}  
```

<a id="constantsSection" />

## Constants

| Constant   | Description              |
| ---------- | ------------------------ |
| None       | No button pressed.       |
| Button1    | Button 1 pressed.        |
| Button2    | Button 2 pressed.        |
| Button3    | Button 3 pressed.        |
| Button4    | Button 4 pressed.        |
| Button5    | Button 5 pressed.        |
| DPadLeft   | D-pad pressed left.      |
| DPadRight  | D-pad pressed right.     |
| DPadUp     | D-pad pressed up.        |
| DPadDown   | D-pad pressed down.      |
| DPadSelect | Center of D-pad pressed. |

<a id="remarksSection" />

## Remarks

The front panel of the XBOX One X dev kit includes five programmable buttons and a directional button that works like a 5-way D-pad.

<img src="https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/front_panel_display_small.png?fit=max&auto=format&n=-_0FrcE2bDxzGxv-&q=85&s=8c81bf256714cec6526e83a4cbac5538" alt="Front panel display of the XBOX One X" width="704" height="362" data-path="images/gdk/reference/front_panel_display_small.png" />

This enumeration is used in the [XFrontPanelGetButtonStates](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetbuttonstates) function. You can combine values to read multiple buttons simultaneously.

For more information, see [XBOX One X: Using the front panel display (NDA topic)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel).

<a id="requirementsSection" />

## Requirements

**Header:** xfrontpaneldisplay.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelGetButtonStates](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetbuttonstates.md)
- [XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelLight](/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
- [View and manipulate the console's front panel (wdpanel.exe)](/tools/tools-console/console_commandlinetools/wdpanel.md)
- [XFrontPanelSetLightStates](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetlightstates.md)
