XFrontPanelButton

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

Syntax

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

This enumeration is used in the 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)Authorization required.

Requirements

Header: xfrontpaneldisplay.h

Supported platforms: Xbox One family consoles and Xbox Series consoles

See also

XFrontPanelDisplay