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

# XFrontPanelButton

> XFrontPanelButton

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

## 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,  
}  
```

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

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

![Front panel display of the XBOX One X](https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/front_panel_display_small.png?fit=max\&auto=format\&n=-_0FrcE2bDxzGxv-\&q=85\&s=8c81bf256714cec6526e83a4cbac5538)

This enumeration is used in the [XFrontPanelGetButtonStates](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetbuttonstates.md) 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).

## Requirements

**Header:** xfrontpaneldisplay.h

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

## See also

[XFrontPanelDisplay](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)


## Related topics

- [XFrontPanelGetButtonStates](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetbuttonstates.md)
- [XFrontPanelDisplay (API contents)](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelLight](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
- [View and manipulate the console's front panel (wdpanel.exe)](https://docs.xbox.com/tools/tools-console/console_commandlinetools/wdpanel.md)
- [XFrontPanelGetLightStates](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetlightstates.md)
